Display only files and folders that are symbolic links in tcsh or bash

后端 未结 11 844
灰色年华
灰色年华 2021-01-30 13:20

Basically I want do the following:

ls -l[+someflags]

(or by some other means) that will only display files that are symbolic links

so t

11条回答
  •  日久生厌
    2021-01-30 14:10

    For only "hidden" folders - dot folders, try:

    ls -l .**
    

    Yes, the two asterisks are necessary, otherwise you'll also get . and .. in the results.

    For symlinks, well, try the symlinks program:

    symlinks -v .
    

    (shows all symlinks under current directory)

提交回复
热议问题