It is currently Thu, 20 Jan 2022 05:14:09 GMT

Author Message
 /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls
Hi Guys:
         Whats the difference between the above ls commands.


 Wed, 17 Jan 2007 05:32:04 GMT   
 /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls (Sunjit) writes in comp.unix.solaris:
|         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).

Alan Coopersmith * * Alan.Coopersm...@Sun.COM   *
  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 Wed, 17 Jan 2007 05:55:54 GMT   
 /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls

What do their man pages say?

Rich Teer, SCNA, SCSA

Rite Online Inc.

Voice: +1 (250) 979-1638

 Wed, 17 Jan 2007 08:58:50 GMT   
 /usr/bin/ls /usr/ucb/ls /usr/local/bin/ls
At Fri, 30 Jul 2004 21:55:54 +0000 (UTC), Alan Coopersmith <> writes:

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

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

 Wed, 17 Jan 2007 09:14:28 GMT   
 /usr/bin/ls /usr/ucb/ls /usr/local/bin/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 !!!

 Sat, 20 Jan 2007 21:53:54 GMT   
   [ 5 post ] 

Similar Threads

1. /usr/bin/ls and /usr/xpg4/bin/ls report different file attributes

2. FTP keeps using /usr/bin/ls and not ~/ftp/bin/ls

3. /bin /usr/bin /usr/local/bin etc

4. /usr/local/bin/perl ->/usr/bin/perl

5. /usr/local/bin vs. /usr/bin

6. #!/usr/local/bin/perl -w || /usr/bin/perl -w

7. /usr/bin/ls doesnt show group in display?

8. HELP: Need ls -l of /usr/bin

9. /usr/bin/mail vs. /usr/ucb/mail

10. /usr/ccs/bin/ld Vs. /usr/ucb/ld

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software