Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

How to list all symbolic (soft) links 

Jun 17, 2014 01:44 PM

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

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.