1 |
Hi Jarry, |
2 |
|
3 |
searching for softlinks is pretty easy: |
4 |
|
5 |
find / -type l |
6 |
|
7 |
If my understanding of hardlinks is correct you cannot say which file is |
8 |
the original and which file is the link. Both inodes just point to the |
9 |
same datablocks. But you can identify those files by checking the |
10 |
linkcount. |
11 |
|
12 |
find / -type f -links '+1' |
13 |
|
14 |
-Stefan |
15 |
|
16 |
On Wed, Feb 03, 2010 at 07:37:36PM +0100, Jarry wrote: |
17 |
> Hi, |
18 |
> |
19 |
> just out of curiosity: is there any quick way to find all |
20 |
> hard- and soft-links on a system? I just want to be sure |
21 |
> they were all created after I moved system from the old disk |
22 |
> to the new one... |
23 |
> |
24 |
> Jarry |
25 |
> -- |
26 |
> _______________________________________________________________ |
27 |
> This mailbox accepts e-mails only from selected mailing-lists! |
28 |
> Everything else is considered to be spam and therefore deleted. |
29 |
> |