Using the command “ls” options and arguments


ls has some interesting format which is very useful. Here are some arguments which you can use. For example, I like

$ ls - ltF
 -a   –all  All files include those with .
 -l  Display results in long format
 -r   –reverse  Reverse order while sorting
 -S  Sort results by file size
 -t  Sort by modification time.
 -F   –classify  Append an indicator character to the end of each listed name

References:

  1. The Linux Command Line (by No Starch Press)

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.