Živijo, On 3/5/07, Miha Tomšič <[EMAIL PROTECTED]> wrote:
Kako najlažje izvem, na katera imena datotek je povezana neka datoteka? Stat mi vrne en kup podatkov, samo tega ne, kaj vse se linka na to datoteko. $ stat filet File: "filet" Size: 18964 Blocks: 40 IO Block: 4096 Regular File Device: 307h/775d Inode: 1018076 Links: 3 Access: (0644/-rw-r--r--) Uid: ( 500/ UNKNOWN) Gid: ( 501/ UNKNOWN) Access: Mon Mar 5 09:17:21 2007 Modify: Sun Mar 4 16:07:57 2007 Change: Sun Mar 4 16:07:57 2007 Super, kaj pa imena ostalih dveh datotek? A obstaja kaj manj senilnega od: $ find / -inum 1018076
Novejše verzije GNU find-a poznajo stikalo "samefile": -samefile name File refers to the same inode as name. When -L is in effect, this can include symbolic links. lp iztok
_______________________________________________ lugos-list mailing list lugos-list@lugos.si http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list