---
title: "Sort du Command Output by Size in Linux"
url: https://daily.dev/posts/sort-du-command-output-by-size-in-linux-pzwf4yote
source_url: https://linuxhandbook.com/du-sort-by-size/
type: article
source: "Linux Handbook"
published: 2023-09-02T05:53:33.101Z
updated: 2023-09-02T05:53:14.773Z
tags: ["linux"]
reading_time: 5
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sort du Command Output by Size in Linux

**[Linux Handbook](https://daily.dev/sources/linuxhandbook)** · 5 min read · 0 upvotes · 0 comments

## Summary

The du command is used to find out the space used by the directories and files in Linux. This means you can find files and directories taking the most and least size. But by default, the du command won't let you sort the output by size. In the simplest form, it will look like this: But the output is not human-readable.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://linuxhandbook.com/du-sort-by-size/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#linux](https://daily.dev/tags/linux)

[View this post on daily.dev](https://daily.dev/posts/sort-du-command-output-by-size-in-linux-pzwf4yote)
