Skip to content

Instantly share code, notes, and snippets.

@melMass
Forked from todgru/bash.md
Last active November 1, 2015 23:25
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 melMass/e917248e3da1ea56112a to your computer and use it in GitHub Desktop.
Save melMass/e917248e3da1ea56112a to your computer and use it in GitHub Desktop.
bash

#BASH

  • du -sh {directory} list display size of directory in human readable format.
  • du -sh * show size of each directory in the current path
  • df disk space usage
$ du -sh *
 11M  Applications
1.9G	Desktop
 14G	Documents
8.0K	Downloads
1.7G	Dropbox
...

###Display Notifications using AS

osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment