[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: ls operation changed
- From: "J. M. Brenner" <doom kzsu stanford edu>
- To: redhat-list redhat com
- Subject: Re: ls operation changed
- Date: Sat Mar 1 02:34:20 2003
Vidiot <brown mrvideo vidiot com> wrote:
> I've been noticing this for a while now and it is damn annoying. The ls
> command traverses symbolic links if the symbolic link is used as the filename
> given to ls. For example, if I do:
>
> ls -laG sym_filename
>
> and sym_filename points to a directory named /usr/symlinkname, the contents
> of /usr/symlinkname is displayed instead of displaying
>
> lrwxrwxrwx 1 brown 16 Sep 15 02:24 sym_filename -> /usr/symlinkname
Hm... doesn't seem to work this way for me.
ln -s /tmp temper
ls -laG /tmp
(lists contents of /tmp)
ls -laG temper
shows just the one line:
lrwxrwxrwx 1 doom 14 Feb 28 23:25 temper -> /home/doom/tmp
I've got the Gnu fileutils version 4.1 (or so "ls --version" says).
Do you know about the -d flag? You might try ls -laGd, that
might get you the behavior you want.
ls -laGd /tmp
drwxrwxrwt 4 root 4096 Feb 28 23:09 /tmp
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]