-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2007-04-30 at 22:40 -0700, Randall R Schulz wrote:
As I mentioned, hard links are not special entities. All directory entries are hard links. The "ln" command just creates "extra" hard links to the same file system entity as one referred to by an existing directory entry. As such, they're not specially signified in the output of any command.
Well, yes, they are: cer@nimrodel:~/tmp/pp> touch pepe cer@nimrodel:~/tmp/pp> ln pepe jose cer@nimrodel:~/tmp/pp> touch juan cer@nimrodel:~/tmp/pp> l total 12 drwxr-xr-x 2 cer users 39 2007-05-01 12:03 ./ drwxr-xr-x 12 cer users 4096 2007-03-06 23:41 ../ - -rw-r--r-- 2 cer users 0 2007-05-01 12:03 jose - -rw-r--r-- 1 cer users 0 2007-05-01 12:03 juan - -rw-r--r-- 2 cer users 0 2007-05-01 12:03 pepe ^ Above, "jose" is a hardlink to "pepe", whereas "juan" is a lone file; the number "2" is the number of links. cer@nimrodel:~/tmp/pp> stat jose pepe juan File: `jose' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 30bh/779d Inode: 25670212 Links: 2 Access: (0644/-rw-r--r--) Uid: ( 500/ cer) Gid: ( 100/ users) Access: 2007-05-01 12:03:12.860372862 +0200 Modify: 2007-05-01 12:03:12.860372862 +0200 Change: 2007-05-01 12:03:22.321055722 +0200 File: `pepe' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 30bh/779d Inode: 25670212 Links: 2 Access: (0644/-rw-r--r--) Uid: ( 500/ cer) Gid: ( 100/ users) Access: 2007-05-01 12:03:12.860372862 +0200 Modify: 2007-05-01 12:03:12.860372862 +0200 Change: 2007-05-01 12:03:22.321055722 +0200 File: `juan' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 30bh/779d Inode: 25670217 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 500/ cer) Gid: ( 100/ users) Access: 2007-05-01 12:03:30.331940407 +0200 Modify: 2007-05-01 12:03:30.331940407 +0200 Change: 2007-05-01 12:03:30.331940407 +0200 The dificult thing is to find out who the other hardlinked name is. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGNxHatTMYHG2NR9URAoj3AJ9LKEJ7mELtAtNJ+uKOEff1OdwC6QCfc8Wr PcsWFmssbaF3QtmmUIigdf8= =EbOR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org