Listing directories sorted by increasing file size
Posted: 2/26/2004 10:36:41 PM
By: Comfortably Anonymous
Times Read: 2,051
0 Dislikes: 0
Topic: Linux

The fifth column of an ls -ls is the filesize column. The following command sorts the file listing by that column:

ls -ls | sort +5n -6
Rating: (You must be logged in to vote)