ls ..
means ‘list upper directorie’s files and directories.’
When I changed directory following a symbolic link, ls ..
does not follow the symblic link. It just shows the real upper directory.
For example, when the directory structure is as follows,
r ┬ a - b - sub@
└ sub
(sub@
is a symbolic link to sub
directory)
ls ..
command after cd a/b/sub
gives files at r
directory as I’m in r/sub
. not b
directory’s. But cd ..
command takes me to b
directory.
How can I use ls
command to show files in directory b
?