It is required to receive the list of all symbolic links in the directory, ignoring some subdirectories.

I tried this:

find -L ./ -xtype l ! -path "./proc/*" ! -path "./sys/*" ! -path "./dev/*" 2> /dev/null 

but displays not all symbolic links, but only those in the etc / directory.

    1 answer 1

    search for soft links (symlinks) in the current directory and in all subdirectories recursively:

     $ find -type l 

    if you need to exclude a directory, for example, proc , in the current directory, then:

     $ find -type l ! -path `./proc/*` 

    it is clear that all directories must have r and x attributes for the current user.