[LUGOS] Trde povezave

iztok fubar666 at gmail.com
Tue Mar 6 11:42:02 CET 2007


Živijo,

On 3/5/07, Miha Tomšič <miha.tomsic at gmail.com> 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


More information about the lugos-list mailing list