Skip to content

Instantly share code, notes, and snippets.

@leighghunt
Created July 3, 2014 22:43
Show Gist options
  • Save leighghunt/44616e110bfcd19f60d4 to your computer and use it in GitHub Desktop.
Save leighghunt/44616e110bfcd19f60d4 to your computer and use it in GitHub Desktop.
Remote file copy cheatsheet
Tar and zip folder input into out.tar.gz file
ubuntu@remote-host$ tar cf out.tar.gz input/
Copy from host to local machine, logging in as user ubuntu
lhunt@local-host$ scp ubuntu@host:/home/ubuntu/out.tar.gz out.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment