I'm using Terminal.app in Yosemite, and I've followed a path through several directories. I'm now at
$HOME/Library/d1/d2/d3/d4 (the d's are directory names). ls -l shows me the content of d4, and one of the entries is a symlink that looks like this: ColorSync -> ../../../../ColorSync
If I just do "ls -l ColorSync", I see the long form of display ending with what you see above. Notice there are four (4) backup steps, which would say ColorSync exists in Library. If I try "ls -ldL ColorSync", I get the same response as for just the -l option alone. That's because there is no ColorSync file in Library. But if I removed the 'd' and use "ls -lL ColorSync", I'm told "ColorSync: No such file or directory". If the symlink points to a directory, such as "d1 -> ../../../d1", then "ls -ldL d1" shows the d1 directory. If I leave out the 'd', is shows the contents of the directory. How do I get "ls -ldL something" to show me a directory at symlink location, OR tell me a file is missing at that location?
$HOME/Library/d1/d2/d3/d4 (the d's are directory names). ls -l shows me the content of d4, and one of the entries is a symlink that looks like this: ColorSync -> ../../../../ColorSync
If I just do "ls -l ColorSync", I see the long form of display ending with what you see above. Notice there are four (4) backup steps, which would say ColorSync exists in Library. If I try "ls -ldL ColorSync", I get the same response as for just the -l option alone. That's because there is no ColorSync file in Library. But if I removed the 'd' and use "ls -lL ColorSync", I'm told "ColorSync: No such file or directory". If the symlink points to a directory, such as "d1 -> ../../../d1", then "ls -ldL d1" shows the d1 directory. If I leave out the 'd', is shows the contents of the directory. How do I get "ls -ldL something" to show me a directory at symlink location, OR tell me a file is missing at that location?