Monitoring, Management & Location Tracking

How to list all symbolic (soft) links

To get a list of all your symbolic links (also called symlinks or soft links) run the following command on the AMP command line:

# ll -R | grep ^l

The ll -R command lists all files recursively from the current directory. The second part of the command greps for the letter l as the first character in a line. A long listing of a symlink looks like this:

lrwxrwxrwx 1 root root 35 May 26 18:35 error_log -> /var/log/httpd/error_log.2010-05-26

If the directory tree contains a large number of symlinks, you can send the output to a file. For the /root directory, for example:

# cd
# ll -R | grep ^l > /tmp/symlink.txt

Version history
Revision #:
1 of 1
Last update:
‎06-17-2014 10:44 AM
Updated by:
 
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.