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

    , without the extra info if you don’t need it:

  • 1
    -m

    This displays comma-separated output:

    Useful for scripting and fast .csv creation!

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

Post to Twitter Post to Delicious Post to Digg Post to Reddit

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

This entry was posted in CLI and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>