-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/04/2010 10:41 AM, Donn Washburn wrote:
Thanks Steffen - a new command also. Looking in the manpages I didn't see a way to see what they were linked to. Besides the link must be a hard type link based on size.
You can also tell if it's a hard link based on the link count in the ls - -l output. For example, /usr/bin/{nis,yp}domainname are hard linked. % ls -la /bin/{yp,nis}domainname - -r-xr-xr-x 2 root root 10800 2010-02-12 19:35 /bin/nisdomainname - -r-xr-xr-x 2 root root 10800 2010-02-12 19:35 /bin/ypdomainname The second column, after the permissions, shows the link count. A file without multiple links has a '1' instead. You can verify that two files are hard linked by adding the -i flag and examining the new first column, which is the inode number. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkuP1qsACgkQLPWxlyuTD7LOxwCdHF75OXg794fDM8C827dYsfVY QpgAn0DX51aCotMdndyCTA3re2ZKGOaU =r6vQ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org