Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Find Symlink files  (Read 2214 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Find Symlink files
« on: December 27, 2013, 08:36:19 pm »
Use the below commands to find symlink directories:

Quote
find <search folder path> -lname <symlink file path>


Use the below command to find all the sym link files:

Quote
find /home -type l -printf '%p -> %l\n'

or

find /home -type l -exec ls -lad {} \;


List all symbolic links in current directory:

Quote
find /home -type l


In order to find all the /root folder symlinks in your /home directory, use this command:

Quote
cd /home

find -lname /root


Use ls command to lise all the sym links:

Quote
ls -lahR | grep ^l