Operating System - HP-UX
1834640 Members
2923 Online
110069 Solutions
New Discussion

finding all symbolink files

 
SOLVED
Go to solution
KCS_1
Respected Contributor

finding all symbolink files

Hello,

I am wondering how to find all symbolink files under /.



Thanks
Easy going at all.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: finding all symbolink files

Hi:

# find / -xdev -type l

...will find all symbolic links under '/'. By using the '-xdev' option, no mountpoints will be crossed.

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: finding all symbolink files

You can use:

find / -xdev -type l

The -xdev limits the search to just the root filesystem. If you need to find symlinks in all directories, leave out the -xdev option. Note that you will find a *LOT* of normal HP-UX symlinks in most of the system directories. Most of them are transition links. Be sure to read the man page for tlinstall.


Bill Hassell, sysadmin
KCS_1
Respected Contributor

Re: finding all symbolink files

Thanks for all
Easy going at all.