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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for symbolic links 3

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

is there a way to search the system for symbolic links (created by using ln -s) and give a list of all symbolic links found ?

Regards
Thomas
 
hi

you can do something like

ls -lRt | grep "^l" # l for symbolic link files
 
find with the -type l option? Presumably using an -exec ls -la {} will give you the paths.

I want to be good, is that not enough?
 
Ken, no need for a -exec, the find builtin -ls gives that info also:

[tt]find . -type l -ls[/tt]


HTH,

p5wizard
 
Great !

Thanks a lot folks !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top