Skip to content

Instantly share code, notes, and snippets.

@barrysteyn
Last active December 29, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrysteyn/7693316 to your computer and use it in GitHub Desktop.
Save barrysteyn/7693316 to your computer and use it in GitHub Desktop.
Useful Posix Commands

Useful Posix Commands

These commands are as Posix possible. Where differences exist between operating systems, specific instructions for the OS will be noted.

Tracking Down Disk Usage

du -Pshx /* 2>/dev/null

The options do as follows:

  • s = summarize
  • h = human readable totals
  • x = stay in one filesystem only
  • P = don't follow symlinks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment