From c8e35958e784de041528d7df45082196e7445432 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Mon, 29 Apr 2024 01:11:25 +1000 Subject: [PATCH] du: add example (#12689) --- pages/common/du.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/du.md b/pages/common/du.md index 6e0a5279c..1061c806f 100644 --- a/pages/common/du.md +++ b/pages/common/du.md @@ -26,3 +26,7 @@ - List the human-readable size of all `.jpg` files in subdirectories of the current directory, and show a cumulative total at the end: `du -ch {{*/*.jpg}}` + +- List all files and directories (including hidden ones) above a certain [t]hreshold size (useful for investigating what is actually taking up the space): + +`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *`