Tuesday, January 26, 2010

Some mnemonics for "ls" parameters

It can be a pain remembering all the different options to "ls", but I've found that most of my needs (outside of simple "ls" or "ls -l") fall into one of these three, easy-to-remember mnemonics:

ls -ltr # Sort by time, reversed, show more details.
ls -Ssh # Show and sort by human-readable size.
ls -Ssl # show and sort by human readable size, but show more details.

No comments:

Post a Comment