Re: [Q] Hard links and soft links?
From: Leon. (leon_at_noteon.net)
Date: 11/29/03
- Next message: Leon.: "Re: Screen and framebuffer support."
- Previous message: David: "Re: Problems with finding headers for linux 2.4.22 during util-linux make"
- In reply to:(deleted message) Hactar: "Re: [Q] Hard links and soft links?"
- Next in thread: Hactar: "Re: [Q] Hard links and soft links?"
- Reply:(deleted message) Hactar: "Re: [Q] Hard links and soft links?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 08:45:10 +1100
"Hactar" <ebenONE@tampabay.ARE-ARE.com.unmunge> wrote in message
news:bqaol1$dn$1@pc.tampabay.rr.com...
> In article <j80yb.38995$jb.381848@news.bora.net>,
> Tester A. <benew666@hotmail.com> wrote:
> > Hi,
> >
> > I would like to know which files are linked to a certain file?
> >
> For soft links, I don't know of a reliable way, and the links can be on
any
> filesystem. For absolute path, you can try:
>
> find / -type l | xargs ls -ld | grep -F "-> ORIG"
>
Perhaps a quicker way is to use the "locate" database (rebuilt with
updatedb), if you are happy that the links in the excluded areas arent a
problem. This will only work when we know what the NAME of the files we are
trying to find are.
locate NAME| xargs ls -ald
The sym links are then obvious, and the hard links can be determined by the
name and the link count on the ls output... the link count counts the number
of hard links to the file. This only
- Next message: Leon.: "Re: Screen and framebuffer support."
- Previous message: David: "Re: Problems with finding headers for linux 2.4.22 during util-linux make"
- In reply to:(deleted message) Hactar: "Re: [Q] Hard links and soft links?"
- Next in thread: Hactar: "Re: [Q] Hard links and soft links?"
- Reply:(deleted message) Hactar: "Re: [Q] Hard links and soft links?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|