Skip to content

Instantly share code, notes, and snippets.

@careytews careytews/copy-from-gcp.sh
Last active Dec 12, 2018

Embed
What would you like to do?
Copy file to macOS clipboard from GCP vm
# I wanted to copy a file to the macOS clipboard without displaying it on the screen
gcloud compute ssh --zone [zone] --project [project] [vm-name] --command "cat [file]" | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.