[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] ls command
- Subject: Re: [cobalt-users] ls command
- From: "Filiberto Ricci" <filiberto@xxxxxxxxx>
- Date: Fri Mar 30 02:47:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> On Fri, 30 Mar 2001, Filiberto Ricci wrote:
>
> > Hi!
> >
> > [root /etc]# ls -alg
> > total 1045
> > drwxr-xr-x 36 root root 3072 Mar 28 23:58 .
> > drwxr-xr-x 16 root root 1024 Mar 22 18:35 ..
> > ....
> >
> > First question
> > What's "total 1045"?
> > I thought it was the number of files listed (in this case the number in
/etc
> > directory) but the output doesnt match that number.
>
> Nope, it's the number of disk blocks used ...
>
> >
> > Second question
> > In the output of "ls -alg /etc" there is not a file Muttrc,
> > but if I try:
> > [root /etc]# find / -name Muttrc
> > find: /proc/6/fd: Permission denied
> > find: /proc/1452/fd: Permission denied
> > /etc/Muttrc
> > [root /etc]# locate Muttrc
> > /etc/Muttrc
> >
> > My supposition was that ls was corrupted, but
> > [root /etc]# rpm -V fileutils-4.0-1_C1
> > [root /etc]#
> >
> > gave me no result.
>
> You may have more than one 'ls' in your path, you could have a good one
> where rpm put it, which will check out fine, and another bogus one
> elsewhere that you are actually running...
>
> 'type ls' will show you where the one you are running is...
>
> This will show you every possible ls in your path, but not aliases
>
> for p in `echo $PATH|tr ':' ' '`;do echo $p/ls;done
>
>
> also try: cd /etc;echo *
>
>
> gsh
Thanks,
I discovered the problem,
Muttrc has an uppercase letter at the beginning, ...
I was looking for in the wrong place.
Thanks anyway. I learned some new "trik" from your answer.
Filiberto