Created
May 20, 2010 18:56
-
-
Save anoras/407934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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$ |
Skjer det samme hvis du skriver cat id_rsa.pub | /usr/bin/pbcopy ?
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
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