RetroCode UK

Published Date Sep 27, 2021

Disk Usage

There are a few useful tools for checking free space on a drive in Linux. The most commonly used is du -sh where -s is.

This first one will recursively find all files in the current path that are at least 500M.

du --separate-dirs --all --time --threshold=500M --human-readable

This next command (installed with sudo pacman -S gdu) is a nice visual way to navigate the largest folders and files in the current path. It also uses Vim-style bindings.