/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

Post by Sunj » Sun, 01 Aug 2004 06:32:04



Hi Guys:
         Whats the difference between the above ls commands.

Thanks!

 
 
 

/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

Post by Alan Coopersmit » Sun, 01 Aug 2004 06:55:54



|         Whats the difference between the above ls commands.

/usr/bin/ls & /usr/ucb/ls come with the OS.  The man page explains
the differences (/usr/bin uses the SysV flags, /usr/ucb uses the ucb
flags - they're not compatible, for instance -g on /usr/ucb/ls means
"add group name to -l format", while on /usr/bin/ls it means "remove
group name from -l format").

/usr/local/bin/ls does not come with the OS, so it's whatever you've
installed locally (likely GNU ls).

--
________________________________________________________________________

 http://www.csua.berkeley.edu/~alanc/   *   http://blogs.sun.com/alanc/
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

Post by Rich Tee » Sun, 01 Aug 2004 09:58:50



> Hi Guys:
>          Whats the difference between the above ls commands.

What do their man pages say?

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

Post by Paul Egger » Sun, 01 Aug 2004 10:14:28



Quote:> /usr/local/bin/ls does not come with the OS, so it's whatever you've
> installed locally (likely GNU ls).

There are two other 'ls' implementations too, at least in Solaris 9:

/usr/bin/sparcv9/ls  -- 64-bit ls
/usr/xpg4/bin/ls     -- POSIX-compatible ls

You might want to be using /usr/bin/sparcv9/ls on any modern Sparc
system with a 64-bit OS, as it should handle files with large
timestamps correctly; /usr/bin/ls doesn't.  I hope the Opteron-based
systems will also have a 64-bit 'ls', whenever their 64-bit OSes are
released.

Or you could build and install a 64-bit GNU "ls" as /usr/local/bin/ls
(which would be even better :-).

 
 
 

/usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

Post by Dragan Cvetkovi » Wed, 04 Aug 2004 22:53:54




>> /usr/local/bin/ls does not come with the OS, so it's whatever you've
>> installed locally (likely GNU ls).

> There are two other 'ls' implementations too, at least in Solaris 9:

> /usr/bin/sparcv9/ls  -- 64-bit ls
> /usr/xpg4/bin/ls     -- POSIX-compatible ls

On s10 (at least) there is also /usr/xpg6/bin/ls

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!