On Fri, 26 Dec 1997, George Bonser wrote: : : I don't know about your system but on mine they are all hard links. These : look like regular files in a listing as opposed to symbolic likns which : show as links in a long directory listing.
I'll bet you're using bo ... and I'll bet the other system is a hamm system (I have a few of each) : In other words, if you delete egrep and fgrep, you will not see any change : in the amount of disk space used. You use ln /bin/grep /bin/egrep to put : the link back (instead of ln -s). : : : On Fri, 26 Dec 1997 [EMAIL PROTECTED] wrote: : : > I have grep version 2.1-3. In looking in the bin directory, I have found out: : > : > /home/dodo# ls -l /bin/*grep : > -rwxr-xr-x 1 root root 67760 déc 16 11:21 /bin/egrep : > -rwxr-xr-x 1 root root 67760 déc 16 11:21 /bin/fgrep : > -rwxr-xr-x 1 root root 67760 déc 16 11:21 /bin/grep : > /home/dodo# diff /bin/grep /bin/egrep : > /home/dodo# diff /bin/grep /bin/fgrep : > /home/dodo# If you look at the output, you'll see that these are indeed seperate files; if they were hard links the number before the owner field would reflect that. kepler:~ # ls -l /bin/*grep -rwxr-xr-x 1 root root 67760 Dec 16 10:21 /bin/egrep* -rwxr-xr-x 1 root root 67760 Dec 16 10:21 /bin/fgrep* -rwxr-xr-x 1 root root 67760 Dec 16 10:21 /bin/grep* kepler:~ # ls -i /bin/*grep 6208 /bin/egrep* 6210 /bin/fgrep* 6178 /bin/grep* The inodes are different. Hmm, I just looked at a bo system and the greps are in /usr/bin instead ... $ ls -l /usr/bin/*grep -rwxr-xr-x 3 root wheel 60552 Mar 24 1997 /usr/bin/egrep -rwxr-xr-x 3 root wheel 60552 Mar 24 1997 /usr/bin/fgrep -rwxr-xr-x 3 root wheel 60552 Mar 24 1997 /usr/bin/grep $ ls -i /usr/bin/*grep 67620 /usr/bin/egrep 67620 /usr/bin/grep 67620 /usr/bin/fgrep Notice the inode numbers are the same here ... [ sigs, etc. snipped ] -- Nathan Norman MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104 phone: (605) 334-4454 fax: (605) 335-1173 mailto://[EMAIL PROTECTED] http://www.midco.net PGP Key ID: 0xA33B86E9 - Public key available at keyservers PGP Key fingerprint: CE03 10AF 3281 1858 9D32 C2AB 936D C472 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

