Skip to content

Instantly share code, notes, and snippets.

@Ropes
Created January 3, 2017 21:33
Show Gist options
  • Save Ropes/8866d61999b2fd3ef05ec6bc5aca886e to your computer and use it in GitHub Desktop.
Save Ropes/8866d61999b2fd3ef05ec6bc5aca886e to your computer and use it in GitHub Desktop.
Copy small blobs of files from one terminal to another.

Compress and tarball files, and pipe the output into base64 which will get dumped to your terminal.

tar -czf - ./filesyouwant* | base64

Copy only the base64 output characters into your host's clipboard.

cat | base64 -d | tar -xzf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment