How to find links in a directory in UNIX

Synopsis

How do you find all symbolic links in a particular directory, sub-directory or PATH in UNIX machine? Well, you can use multiple commands for that, for

Statistics

  • Total Hits - 37162

  • Total Votes - 1 votes

  • Vote Up - 0 votes

  • Vote Down - 1 votes

  • Domain - java67.blogspot.sg

  • Category - Unix/Basic Concepts

  • Submitted By - Javin Paul

  • Submitted on - 2015-05-23 12:40:07

Description

How do you find all symbolic links in a particular directory, sub-directory or PATH in UNIX machine? Well, you can use multiple commands for that, for example simplest command is ls -lrt which list down all the files, directory and link. Since link has first letter as l you can further use grep command to filter only links from rest of files. Similarly you can also use find command with type as l, it will also find all links.

Source Website

Please use the following link to visit the site. There is a possibility that this content has been removed from the given URL or may be this site has been shut down completely.

http://java67.blogspot.sg/2012/10/unix-command-to-find-symbolic-link-or.html

Broken  |   Save  |   Liked  |   Down

Advertisements