Skip to content

Instantly share code, notes, and snippets.

@aledpardo
Last active April 17, 2017 01:11
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 aledpardo/e83d30d4eabdaad3a2386e86e6786c06 to your computer and use it in GitHub Desktop.
Save aledpardo/e83d30d4eabdaad3a2386e86e6786c06 to your computer and use it in GitHub Desktop.
#Mount an SMB file share with rw+ permissions
mount_smbfs -d 777 -f 777 //Alexandre@CENTAURO/BACKUP_MAC BACKUP_MAC
#Synchronize files between directories
rsync -vaEt --progress ~/Documents ~/BACKUP_MAC/Documents/
#Unmount an SMB file share
umount BACKUP_MAC
#See how much disk is being used/free
df -H
# Create bootable Mac OS install media
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/CORE --applicationpath /Applications/Install\ macOS\ Sierra.app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment