cd [-L] [-P] [-e] [-@] 有什么作用?

Hug*_*er1 2 command-line bash

出于好奇,我输入了 cd --help 来查看是否可以通过更改目录来做任何额外的事情,然后它想出了

cd: usage: cd [-L|[-P [-e]] [-@]] [dir]
Run Code Online (Sandbox Code Playgroud)

每个选项有什么作用?我尝试进行 DDG 搜索,但在这些额外参数上没有发现任何内容..在我尝试之前有人可以解释它们并发现 -L 删除该目录中找到的所有文件但不删除目录本身或类似的东西哈哈: -)

ter*_*don 6

尝试help cd

 Options:
    -L  force symbolic links to be followed: resolve symbolic links in
    DIR after processing instances of `..'

    -P  use the physical directory structure without following symbolic
    links: resolve symbolic links in DIR before processing instances
    of `..'

    -e  if the -P option is supplied, and the current working directory
    cannot be determined successfully, exit with a non-zero status

    -@  on systems that support it, present a file with extended attributes
        as a directory containing the file attributes
Run Code Online (Sandbox Code Playgroud)