Overview for sort

How to sort files in folder from the biggest to smallest

Command ls in Linus is very powerful and you can list files any way you want using proper parameters. In case we want to sort files in a folder by size descending, we run a following command:

$ ls -S

This command show all files in a folder and list them descending by file size, but there's a problem, which we will explain in an article below. It's good to write about commands and outputs, but the best way, from my point of view, is to show everything on a real example (I tried it on openSUSE Linux, but ls is a command, which works in every Linux distro, so don't be afraid something will work different way on your system.

Read more

Written by Administrator on Saturday May 2, 2020