![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Collection of Unix Links | Kriss | UNIX for Dummies Questions & Answers | 1 | 01-26-2009 07:57 AM |
| Post Your Favorite UNIX/Linux Related RSS Feed Links | Neo | What's on Your Mind? | 0 | 12-23-2007 12:41 PM |
| Question posting links | hemangjani | UNIX for Dummies Questions & Answers | 5 | 02-25-2006 07:28 PM |
| All Linux and Unix commands Links | devotedsinner | News, Links, Events and Announcements | 0 | 11-07-2005 07:49 AM |
| Unix History Question: Why are filenames/dirnames case sentsitive in Unix? | deckard | UNIX for Dummies Questions & Answers | 3 | 03-26-2005 01:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
A question for links in Unix
Is there a command that I can list, at once, all the links(path) of a give file ( including hard link and soft link)? If not, can it be down by writing a script? Thanks a lot.
(I know that pwd would only list one path.) |
|
||||
|
I can't think of a way to list all the soft links.
To find the hard links, first run ls -li to find out the inode number of the file. Then do a find from the root of the file system (hard links do not cross mount points) for that inode. Example from a Solaris 10 box: Code:
> cd /usr/bin
> ls -li zcat
3262 -r-xr-xr-x 3 root bin 27176 Jan 22 2005 zcat
> find . -inum 3262
./compress
./uncompress
./zcat
>
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|