Skip to content

Instantly share code, notes, and snippets.

@anoras
Created May 20, 2010 18:56
Show Gist options
  • Save anoras/407934 to your computer and use it in GitHub Desktop.
Save anoras/407934 to your computer and use it in GitHub Desktop.
Anders-Norass-MacBook-Pro:.ssh anders$ which pbcopy
/usr/bin/pbcopy
Anders-Norass-MacBook-Pro:.ssh anders$ cat id_rsa.pub | pbcopy
-bash:  pbcopy: command not found
Anders-Norass-MacBook-Pro:.ssh anders$
@bolav
Copy link

bolav commented May 20, 2010

Macintosh-3:~ bolav$ which pbcopy
/usr/bin/pbcopy
Macintosh-3:~ bolav$ cd .ssh/
Macintosh-3:.ssh bolav$ which pbcopy
/usr/bin/pbcopy
Macintosh-3:.ssh bolav$ ls id_rsa.pub
id_rsa.pub
Macintosh-3:.ssh bolav$ cat id_rsa.pub | pbcopy
Macintosh-3:.ssh bolav$ file /usr/bin/pbcopy
/usr/bin/pbcopy: Mach-O universal binary with 2 architectures
/usr/bin/pbcopy (for architecture i386): Mach-O executable i386
/usr/bin/pbcopy (for architecture ppc7400): Mach-O executable ppc

@bolav
Copy link

bolav commented May 20, 2010

Skjer det samme hvis du skriver cat id_rsa.pub | /usr/bin/pbcopy ?

@anoras
Copy link
Author

anoras commented May 20, 2010

Det funka når jeg gjorde cat ~/.ssh/id_rsa.pub | pbcopy
Ikke helt sikker hvorfor dette skulle gjøre noen forskjell. Hvilken path jeg sto i hadde ikke noen betydning.

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