Skip to content

Instantly share code, notes, and snippets.

@niamrox
Last active August 29, 2015 14:09
Show Gist options
  • Save niamrox/b97fc106f3270a2d51f9 to your computer and use it in GitHub Desktop.
Save niamrox/b97fc106f3270a2d51f9 to your computer and use it in GitHub Desktop.
Terminal Command

###Force trush on Mac From terminal Command sudo rm -rf ~/.Trash
sudo rm -rf /Volumes/*/.Trashes ###Copy File from server to local pc scp (remote computer):path/to/remote/file (location on my local computer) rsync -av /path/to/source /path/to/destination
rsync -av /path/to/source/ /path/to/destination/source
####example copy from server to my pc scp emran@192.168.1.249:/var/www/css/wordpress/release/unship_data.zip /Volumes/Storage/tuhin.dev/web/css/products/themeforest/wordpress/unship/package/
###Move or Rename mv -v oldpath/name newpath/name
###Edit Host File sudo nano /private/etc/hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment