Operating System - HP-UX
1827470 Members
2288 Online
109965 Solutions
New Discussion

Re: finding all soft link on the server

 
SOLVED
Go to solution
Shivkumar
Super Advisor

finding all soft link on the server

Hi All,

What is the command to find all soft links on a server ?

Thanks,
Shiv
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: finding all soft link on the server

find / -type l


Pete

Pete
Roopesh Francis_1
Trusted Contributor
Solution

Re: finding all soft link on the server

For finding soft link:find / -type l -exec ls -l {} \;
finding hard link: find \ -type f -links +1 -exec ls -l {} \;
Will find all files that have MORE than 1 link. Hardlinked files have a link count of at least two
SANTOSH S. MHASKAR
Trusted Contributor

Re: finding all soft link on the server

Hi,

Use

find / -type l

or

find / -type l -exec ls -ld {} \;

-Santosh