On Wed, Apr 8, 2009 at 12:25 AM, Jean Christophe Andr?
<jean-christophe.andre at auf.org> wrote:
>> $alias tracert=traceroute
>>
> Yurgl... Are you aliasing dir to ls too?!? :-D
> Well... Don't tell me, I think I prefer not to know... ;-)
I do not set and it is there by default.

I've take a look at coreutils's src/Makefile.am
and found that: ls and dir are made by linking all the (same) object files(.o)
That's why they have same filesize but different md5sum.

But, should dir be a symlink or an alias to ls?

[vuhung@  src]$ md5sum /usr/bin/dir /bin/ls
84db07f1ad799515bce09f75a7f169d7  /usr/bin/dir
81ffaed1155462cca52465f07d778afb  /bin/ls
[vuhung@  src]$ ls -l /usr/bin/dir /bin/ls
-rwxr-xr-x  1 root root 81240 Nov 18  2007 /bin/ls
-rwxr-xr-x  1 root root 81240 Nov 18  2007 /usr/bin/dir
[vuhung@  src]$ cat /etc/redhat-release
CentOS release 4.6 (Final)
[vuhung@  src]$ rpm -qf /usr/bin/dir
coreutils-5.2.1-31.7
[vuhung@  src]$ rpm -qf /bin/ls
coreutils-5.2.1-31.7


-- 
Best Regards,
Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguy?n V? H?ng )
vuhung16plus{[email protected] , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html

Trả lời cho