Aug 29, 2008 #1 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 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
Aug 29, 2008 1 #2 DSMARWAY Technical User Jun 25, 2002 640 GB hi you can do something like ls -lRt | grep "^l" # l for symbolic link files Upvote 0 Downvote
Aug 29, 2008 1 #3 KenCunningham Technical User Mar 20, 2001 8,475 GB 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? Upvote 0 Downvote
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?
Aug 29, 2008 1 #4 p5wizard IS-IT--Management Apr 18, 2005 3,165 BE Ken, no need for a -exec, the find builtin -ls gives that info also: [tt]find . -type l -ls[/tt] HTH, p5wizard Upvote 0 Downvote
Ken, no need for a -exec, the find builtin -ls gives that info also: [tt]find . -type l -ls[/tt] HTH, p5wizard
Aug 29, 2008 #5 KenCunningham Technical User Mar 20, 2001 8,475 GB Indeed it will, p5, good catch! I want to be good, is that not enough? Upvote 0 Downvote
Aug 29, 2008 Thread starter #6 TSch Technical User Jul 12, 2001 557 DE Great ! Thanks a lot folks ! Upvote 0 Downvote