Operating System - HP-UX
1752742 Members
5422 Online
108789 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