Nguyễn Đôn Hào
New member
How do I sort ls by file size?
Answer
To list or sort all the files by size,
use the -S option, that tells the ls command
to sort the file listing by size and the -h option makes the output a human-readable format. In the following output, the largest files are shown in the beginning.
Answer
To list or sort all the files by size,
use the -S option, that tells the ls command
to sort the file listing by size and the -h option makes the output a human-readable format. In the following output, the largest files are shown in the beginning.