小编daV*_*aVe的帖子

当我在符号链接目录中时,为什么“ls ..”会显示真正的父内容?

$ cd ~
$ ln -s /real/folder symbolic_link

$ cd symbolic_link
$ cd ..
$ ls -l
symbolic_link -> /real/folder/

$ cd symbolic_link
$ ls -l ..
folder
Run Code Online (Sandbox Code Playgroud)

换句话说,为什么 的行为与您在符号链接目录中时的行为cd ..不同ls ..

linux

5
推荐指数
1
解决办法
1115
查看次数

标签 统计

linux ×1