How to Use the du Command in Linux

Before checking filesystem free space, you may first want to know how much space a particular directory uses. The du command estimates the space used by that directory and its contents. I’ll explain what du measures and show how to request a total or inspect another directory level. TL;DR Use the readable-units option with a

How to Use the du Command in Linux Read More »

How to Use the Tree Command in Linux

An unfamiliar directory can contain several layers of folders, making its contents harder to scan. The tree command displays those folders and their files in a branching hierarchy. This article covers installing tree and tailoring its output with depth limits and name filters. TL;DR The tree command prints a directory and its contents as an

How to Use the Tree Command in Linux Read More »

How to Find Large Files in Linux

When Linux storage is running low, locating large files gives you paths to inspect. The find command searches a chosen directory for files above a size threshold. This article shows how to set that threshold and rank matching files by apparent size. It also explains when du helps compare directory usage. TL;DR: Find large files

How to Find Large Files in Linux Read More »