This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem dereferencing with ls -L


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]