What option can be used to sort files by file size, largest first?

To sort files by file size, with the largest files first, you can use the -S option with the ls command.

Command:

ls -lS

Explanation:

  • ls: Lists the contents of a directory.
  • -l: Provides a long format listing with detailed information.
  • -S: Sorts the files by size, displaying the largest files first.

If you have more questions or need further assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!