Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Nov 2000 11:57:31 -0800
From:      Tim Kientzle <kientzle@acm.org>
To:        Jonathan Perkin <sketchy@netcraft.com>
Cc:        libh@FreeBSD.ORG
Subject:   Re: Making the Packages System Better
Message-ID:  <3A0318AB.A0417517@acm.org>
References:  <20001103143503.B94079@netcraft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan Perkin wrote:
> ... I side with DES in that the symlinks get annoying after a while 
> - basic stuff like viewing file permissions is impractical as you
> have to follow symlinks first just to get to the file.

man ls

I don't know if the -H option is available on most Linux
systems, but it's been a standard part of BSD for quite
a while.

For example, on my system right now, I could follow the
symlink trail for /usr/local/bin/java:

% ls -l /usr/local/bin/java
lrwxr-xr-x  1 root  wheel  20 Sep  1 20:30 /usr/local/bin/java@ ->
../jdk1.2.2/bin/java
% ls -l /usr/local/jdk1.2.2/bin/java
lrwxr-xr-x  1 root  1050  13 Aug 24 13:01 /usr/local/jdk1.2.2/bin/java@
-> .java_wrapper
% ls -l /usr/local/jdk1.2.2/bin/.java_wrapper
-r-xr-xr-x  1 root  1050  3228 Aug 23 17:33
/usr/local/jdk1.2.2/bin/.java_wrapper*

Or I can type ls -lH and get the final file details in one shot:

% ls -lH /usr/local/bin/java
-r-xr-xr-x  1 root  1050  3228 Aug 23 17:33 /usr/local/bin/java*


			- Tim Kientzle


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A0318AB.A0417517>