Linux commands are marvellous !
We can use LS to sort files by name, by size or others methods that you could imagine.
For example,
Suppose you have a list of files in a folder :
– cuibo1
– 1111
– 2222
– 3333
– cuibo2
– cuibo333
And you want all the files in order which begins with cuibo, what you can do is : ls -h | grep “cuibo”
C’est tout !
Here is a blog which talks about sort files by size : http://www.cyberciti.biz/faq/linux-ls-command-sort-by-file-size/