我在我的 mac 上的主目录中:
$ pwd
/Users/lukas
Run Code Online (Sandbox Code Playgroud)
当我cd在附近时,我不会(也不能)以以下方式开始路径/:
$ cd Documents/
/Users/lukas/Documents
$ cd /Documents
-bash: cd: /Documents: No such file or directory
Run Code Online (Sandbox Code Playgroud)
除非我在/:
$ pwd
/
$ cd Users
/Users
$ cd /Users
/Users
Run Code Online (Sandbox Code Playgroud)
为什么我可以/在从/to时在路径前面使用/Users但在任何后续级别中都不能使用?这是特定于 macOS 还是标准的 Unix 行为?