From b8311a48a0a180fcb04560b7f7e6014459f7b707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BCschel?= Date: Wed, 5 Apr 2017 18:54:46 +0200 Subject: [PATCH] Add du command options & better example (#25) --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e7a241..b6f7c3d 100644 --- a/README.md +++ b/README.md @@ -747,9 +747,21 @@ dig domain ``` ### f. `du` -Shows the disk usage of the files and directories in filename (du -s give only a total). +Shows the disk usage of files or directories. For more information on this command check this [link](http://www.linfo.org/du.html) ```bash -du filename +du [option] [filename|directory] +``` +Options: +- `-h` (human readable) Displays output it in kilobytes (K), megabytes (M) and gigabytes (G). +- `-s` (supress or summarize) Outputs total disk space of a directory and supresses reports for subdirectories. + +Example: +```shell +du -sh pictures +``` + +```shell +1.4M pictures ``` ### g. `fg`