How to list only symbolic links in a directory on a Linux filesystem.

How to list all symlinks in a Linux directory To list only the symbolic links on a Linux filesystem, use ls and grep as shown below. This will easily do this for you. ubuntu ~/Documents $ ls -hula /lib | grep "\->" lrwxrwxrwx 1 root root 21 Feb 4 02:48 cpp -> /etc/alternatives/cpp lrwxrwxrwx 1 … Read more