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}}`