Two ls options you might not have used
ls has a
1 | --format |
option that allows a number of various formatting displays. Some, like
1 | -l |
, you have probably used often. And some don’t seem all that useful, like
1 | -x |
. But here are two I did not know and now like:
-
1-1
That’s the numeral one. It shows single column output, so you can have the readability of
1-l -
1-m
This displays comma-separated output:

Useful for scripting and fast .csv creation!
Possibly Related (no promises):
- Checking options with optparse callbacks
- More efficient HTML editing in vim
- Useful ways to list directory contents
Related posts brought to you by Yet Another Related Posts Plugin.
November 15, 2008 - 4:37 PM








