Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Alias lsd

5 views
Skip to first unread message

Feranija

unread,
Apr 7, 2011, 6:04:30 PM4/7/11
to
For everyone's enjoyment; shows all directories, hidden and
non-hidden, and ignore everything else, no programming interpreters
involved:


alias lsd='/bin/ls -FAv |grep /$ | column'


Option "v" is not necessary; the alias works well without it, but I
find it useful for natural sorting numbers within text as per manual.

The "column" is a little program from util-linux. The alias works
well without the column too, but the column gives a nice clear sorting.

I've come up with this alias back in the year 2000, and I've always
hesitated to post it anywhere believing I am reinventing the wheel.

Since I posted this alias on Archlinux forums yesterday on April
6th, 2011, I may post it here too.

Sidney Lambe

unread,
Apr 7, 2011, 7:17:19 PM4/7/11
to

Nice little script. Be better if the regular files were displayed
_after_ the dirs.

How is archlinux? I've been reading the docs and it looks pretty
good. I'm using puppy right now, but it's got a lot of problems.
For one, it doesn't even have the column utility!

I had to chroot into slackware on another partition to run your
script.

Sid

0 new messages