The command ls -S will sort files:

The command ls -S will sort files:Category: Linux EssentialsThe command ls -S will sort files:
Linux Questions Staff asked 1 year ago

The command ls -S will sort files:

  • By size, smallest to largest
  • By number of symlinks, largest to smallest
  • By modification date, newest to oldest
  • By size, largest to smallest

About the author