How can I use just one single
ls command to display all symbolic links in my
ls -l and that's about it.
The normal way to do this would be to use
You can replace the
Other than that, I suppose you could use something like
ls -l | grep ^l
Generate a full listing, and select.
The other solution offered (find /dev -type l -ls) might be more efficient as it doesn't do the full listing, but it invokes 'ls' multiple times so it maybe less efficient. I'd bet less efficient, but also 'grep' is VERY useful and everyone should understand 'command | grep XXX".
You can use find and only invoke 'ls' once, but it gets more complicated... using xargs or backticks
or maybe something like
but it's too ugly for beginners (-L 99 is not ideal, but I don't see how to do all args).