Skip to content

Comment on Hacking ls -l

Comments

i always use one hack for ls. alias lsd="ls -ltrF | grep ^d"

This way, I quickly run lsd to only look for directories.

That's funny, I also have an alias for lsd which does this. But you can do it without grep: lsd='ls -d */'

Yours doesn't show . directories and parents does.

But lsd makes you see things that aren't even there.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.