The option is right there, in the middle, Sorting Directories. I can finally see what movies, ahem, I mean presentations, I downloaded last. Well, I found the option now, which I want to share. Simply add the alias line to the end of this file, save it, log out, and log back in, and you should still be able to use the ‘du-sort’ command. The sort rules only applied to files and I never took the time to figure it out. This may change depending on your distribution. Then you can just issue the command using: $ du-sortĪdd this alias to the. You can also use the Folder menu >Sort by > Name/Date/Size/Reverse Order. To sort your list of folders you click on the dropdown arrow at the top of the list and select the sort order you want. If you often need to check folder and file sizes, rather than memorize the above commands, you can set up an alias, and put it in your. Folders are the containers for the picture files and they have dates and names as well. The commands below can be used to do just that.ĭisplay folder sizes and sort in ascending order:ĭisplay folder sizes and sort in descending order: The + terminator to the -exec causes multiple arguments to be passed as a list to ls.
Generally this isn’t straight forward to do. For each file found, an ls process is run to sort the objects found in size order. A common requirement on any operating system is to be able to view the total size of a list of folders and files on the file system, and be able to sort the list by size.