delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/17/17:47:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200107172115.QAA11712@devmail.dev.tivoli.com>
X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4
To: cygwin AT cygwin DOT com, "jorgens AT coho DOT net" <jorgens AT coho DOT net>
Reply-To: jheyman AT dev DOT tivoli DOT com
Subject: Re: Problem dereferencing with ls -L
In-reply-to: <01C10EC9.18AEAA80.jorgens@coho.net>
Mime-Version: 1.0
Date: Tue, 17 Jul 2001 17:16:13 -0400
From: (Jerry Heyman) <jerry AT dev DOT tivoli DOT com>

On 17 July 2001 at 14:02, Steve Jorgensen <jorgens AT coho DOT 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 DOT Heyman AT tivoli DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019