Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find all links of a file ?

Status
Not open for further replies.

HaoDr

IS-IT--Management
Sep 26, 2001
32
VN
Hi all,

Please tell how I can find all links of a file ( for example, I have a file /usr/sbin/minicom have 3 links locating somewhere in my PC, and sometimes, I'd like to search all these links to do something, but until now I don't know how to do that )

Thanks for your help.

Hao Dr
 
If you have Gnome, you could use it's search tool called gsearchtool or KDE's called kfind. You could use whereis but I think that only list the occurences of the file name in your path.
 
Hi,

You can use find - something like :

find /usr -lname "*minicom*'

would find all files (links) under the /usr directory that were links to a file with 'minicom' in it. See 'man find' .

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top