From 3962b799d2529d9deed5ae5ed82be5aa487c60fa Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 10 Feb 2014 12:27:59 -0800 Subject: [PATCH] Moved du back seperate pages for linux/osx because GNU has --max-depth, BSD has -d Edited the examples to always explicitly specify unit as previous examples allowed return of block units which is probably not what your average user wants. --- common/du.md | 19 ------------------- linux/du.md | 19 +++++++++++++++++++ osx/du.md | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+), 19 deletions(-) delete mode 100644 common/du.md create mode 100644 linux/du.md create mode 100644 osx/du.md diff --git a/common/du.md b/common/du.md deleted file mode 100644 index f3f2bcff80..0000000000 --- a/common/du.md +++ /dev/null @@ -1,19 +0,0 @@ -# du - -> Estimate file space usage - -- get file sizes of directory's content - -`du {{file/directory}}` - -- get total size in human readable form - -`du -sh {{file/directory}}` - -- get recursively, individual file/folder sizes in human readable form - -`du -ah {{directory}}` - -- get file sizes till a specified depth - -`du --max-depth=1` diff --git a/linux/du.md b/linux/du.md new file mode 100644 index 0000000000..d956e744fe --- /dev/null +++ b/linux/du.md @@ -0,0 +1,19 @@ +# du + +> Estimate file space usage + +- get a sum of the total size of a file/folder in human readable units + +`du -sh {{file/directory}}` + +- list file sizes of a directory and any subdirectories in KB + +`du -k {{file/directory}}` + +- get recursively, individual file/folder sizes in human readable form + +`du -ah {{directory}}` + +- list the KB sizes of directories for N levels below the specified directory + +`du --max-depth=1` diff --git a/osx/du.md b/osx/du.md new file mode 100644 index 0000000000..32caa80f2f --- /dev/null +++ b/osx/du.md @@ -0,0 +1,19 @@ +# du + +> Estimate file space usage + +- get a sum of the total size of a file/folder in human readable units + +`du -sh {{file/directory}}` + +- list file sizes of a directory and any subdirectories in KB + +`du -k {{file/directory}}` + +- get recursively, individual file/folder sizes in human readable form + +`du -ah {{directory}}` + +- list the KB sizes of directories for N levels below the specified directory + +`du -k -depth=1 {{directory}}`