![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| link files together | fredao | Shell Programming and Scripting | 1 | 12-04-2006 06:24 PM |
| how find the link of the file | Manish Jha | Shell Programming and Scripting | 8 | 01-05-2006 04:50 AM |
| Link files.... | Tom Bombadil | UNIX for Dummies Questions & Answers | 1 | 05-11-2005 09:05 PM |
| Permissions on link files | moviestud80 | UNIX for Dummies Questions & Answers | 2 | 04-01-2005 04:01 PM |
| Link files in unix | yuvasyntel | Shell Programming and Scripting | 2 | 12-25-2002 08:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
This is the only way I know without resorting to C code, and assumes the links are symlinks and can be in any directory:
Code:
find / -type l -exec ls -l {} \; | grep mainfile_name
statement to use a pattern file with "mainfile" names. |
|
||||
|
Yes, we can find the list of hard link files using below command,
find . -links +1 -print The -links +1 --> Will find all files that have MORE than 1 link. Hardlinked files have a link count of at least two. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|