macOS- create bootable USB stick to install macOS #terminal #macOS
# Connect to your Mac a properly formatted 8GB (or larger) drive.
# Rename the drive to Untitled. (The Terminal command used here assumes the drive is named Untitled.)
$ sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction