The right way to Order by File Dimension utilizing the du command in Linux

August 10, 2022 · 1 min · 52 phrases · Andrew

In case you use the du command to record all of the file sizes on Linux:

# or
du -h # Human readable

Then you definitely would have seen that they don’t seem to be ordered by file dimension.

As a substitute you’ll be able to cross that outcome to the kind command as follows:

du -h | kind -h