Hi Guys:
Whats the difference between the above ls commands.
Thanks!
Thanks!
/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.
--
Rich Teer, SCNA, SCSA
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
There are two other 'ls' implementations too, at least in Solaris 9:Quote:> /usr/local/bin/ls does not come with the OS, so it's whatever you've
> installed locally (likely GNU ls).
/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/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
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 !!!
1. /usr/bin/ls and /usr/xpg4/bin/ls report different file attributes
Hi
On a SUN E450 with Solaris 2.6, I found that /usr/bin/ls and
/usr/xpg4/bin/ls reports the diffrent modified timestamp for the same file.
Does anyone have any idea?
Thanks
Frank
2. When will fdisk be fixed - Slackware 2.2.0
3. FTP keeps using /usr/bin/ls and not ~/ftp/bin/ls
4. NCR 810 crash with 2.0.1x-2.0.13 !! Who can help ?
5. /usr/bin, /usr/local/bin, /sbin or /opt/bin, /var/opt/bin - I'm confused.
6. United Parcel Service Sucks
7. /bin /usr/bin /usr/local/bin etc
8. BINHEX encoder/decoder for Unix?
9. /usr/local/bin/perl ->/usr/bin/perl
10. /usr/local/bin vs. /usr/bin
11. how to combine /usr/bin and /usr/local/bin etc ??
12. Why /usr/bin instead of /usr/local/bin for gnu stuff?
13. setting executable path to both /usr/local/bin/ & /usr/bin/