Basically I want do the following:
ls -l[+someflags]
(or by some other means) that will only display files that are symbolic links
so the output would look
-rw-r--r-- 1 username grp size date-time filename -> somedir
-rw-r--r-- 1 username grp size date-time filename2 -> somsdfsdf
etc.
For example,
to show only directories I have an alias:
alias lsd 'ls -l | grep ^d'
I wonder how to display only hidden files or only hidden directories?
I have the following solution, however it doesn't display the output in color :(
ls -ltra | grep '\->'
This works good for me however if you will be searching / the filesystem root you will need to omit the proc directory
For only "hidden" folders - dot folders, try:
Yes, the two asterisks are necessary, otherwise you'll also get . and .. in the results.
For symlinks, well, try the symlinks program:
(shows all symlinks under current directory)
Try file type flag and get rid of the appending @
Find all the symbolic links in a directory:
For the listing of hidden files:
Usage: foo $path
Uses current path if none specified.