Problem dereferencing with ls -L
(Jerry Heyman)
jerry@dev.tivoli.com
Tue Jul 17 14:15:00 GMT 2001
On 17 July 2001 at 14:02, Steve Jorgensen <jorgens@coho.net> wrote:
> When I run ls -L /usr/bin/awk, I get /usr/bin/awk. Similarly, if I enter
> ls -L /usr/bin/awk.exe, I get /usr/bin/awk.exe. If, however, I enter ls -l
> /usr/bin/awk, it tells me that /usr/bin/awk -> gawk.exe. Why doesn't ls -L
> show me the dereferenced file info?
Unless I misunderstand the question, the -L flag says follow any
symlinks and show me the file that I've requested. Which means that
if foo is symlinked to bar and you do an:
ls -L foo
You will see foo on the output
-l is the long listing and if its a symlink will tell you what the
link is pointing to. If you do:
ls -lL /usr/bin/*awk*
You should see all the different names for awk in the directory and
their size/date will all be the same, because they are actually giving
you the size of the same file.
jerry
--
Jerry Heyman 919.224.1442 | Tivoli Systems |"Software is the
Build Infrastructure Architect | 3901 S Miami Blvd | difference between
Jerry.Heyman@tivoli.com | Durham, NC 27703 | hardware and reality"
http://www.acm.org/~heymanj
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list