How to list the symbolic links of a folder in Linux?

1

I'm using a deploy tool in PHP.

When I use the command, some symbolic links are created for certain folders.

How do I run this command on a Linux server, I would like to know if there is any command to list all the symbolic links created in the folder.

With the command ls I can not differentiate between folders and links

How can I do this in Linux?

    
asked by anonymous 06.06.2016 / 14:44

1 answer

4

If it's just for viewing, you can use ls same:

ls -l
  • the -l option is the "long listing", which shows the details

The links will appear with indication of the origin ( -> ).

  

link

If you want to filter the listing better, you can use find :

find . -type l -ls
  • . is the current directory. You can switch to the specific path if you prefer.

  • -type is a file type filter. The l , as you may have guessed, is the "symbolic link" type.

  • The -ls in this case is only a helper here, to show the special characters "escaped", so as to be legible.

  

link

    
06.06.2016 / 14:54