From d1c342fb6ce4891664093ca007bbe8f1f609ee06 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 3 Aug 2016 12:30:02 +0100 Subject: [PATCH] osx/du.md: fix depth option, plus minor tweaks The version I have uses `-d` for the depth option, not `-depth`. Here's the version string as shown by `man du`: ``` BSD June 2, 2004 BSD ``` In addition to this fix, this commit changes the tokens to clarify that they are paths, and changes "directory" to "folder", which is shorter and more accessible. --- pages/osx/du.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/osx/du.md b/pages/osx/du.md index e365b4841..a06f3fe8b 100644 --- a/pages/osx/du.md +++ b/pages/osx/du.md @@ -4,16 +4,16 @@ - Get a sum of the total size of a file/folder in human readable units: -`du -sh {{file_or_directory}}` +`du -sh {{path/to/file_or_folder}}` - List file sizes of a directory and any subdirectories in KB: -`du -k {{file_or_directory}}` +`du -k {{path/to/file_or_folder}}` - Get recursively, individual file/folder sizes in human readable form: -`du -ah {{directory}}` +`du -ah {{path/to/folder}}` -- List the KB sizes of directories for N levels below the specified directory: +- List the human-readable sizes of directories for 2 levels of depth below the specified directory: -`du -k -depth=1 {{directory}}` +`du -h -d 2 {{path/to/folder}}`