Listing files/directories by size

Does anybody know if it is possible and how to list home users’ content by the “real” size of directories/files? Dolphin and Konqueror sort by the number of itens which is meaningless for managing.

$ du -sk * .[^.]*| sort -h


1 Like

Many thanks!

It worked fine. I guess I should apply for a formal course on regular expressions!

Just a comment out of the scope of this forum (maybe a KDE issue): New users usually don’t even know about command line and may feel frustrating that Dolphin doesn’t offer the option to sort the content of a folder/directory by the real size of internal folders. I really think sorting folders by the number of files they contain useless.