Listing directories sorted by increasing file size
Posted: 2/26/2004 10:36:41 PMBy: Comfortably Anonymous
Times Read: 2,349
Likes: 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)