How to sort folders, different files using LS or TREE programs?
Hello everyone.
The system loves order))
For example, I have a Sort folder for example.
Please tell me which team will sort over the alphabet at the top of the alphabet, then, for example, MP4, then MP3, ISO, TXT and they will be located in alphabet or the second option in size.
sort $ ls -l
total 12
drwxr-xr-x 2 tom tom 4096 Jul 11 16:03 a-test1
-rw-r--r-- 1 tom tom 0 Jul 11 16:04 a-test1.txt
drwxr-xr-x 2 tom tom 4096 Jul 11 16:03 b-test2
-rw-r--r-- 1 tom tom 0 Jul 11 16:04 b-test.txt
drwxr-xr-x 2 tom tom 4096 Jul 11 16:03 c-test3
-rw-r--r-- 1 tom tom 0 Jul 11 16:04 c-test.txt
sort $ tree -l
.
├── a-test1
├── a-test1.txt
├── b-test2
├── b-test.txt
├── c-test3
└── c-test.txt
4 directories, 3 files