将终端输出复制到Mac剪贴板?


Answers:


23

用途pbcopy

echo foo | pbcopy

另请参阅man pbcopy以获取有关的信息pbpaste


或对于文件,例如rsa密钥,请使用pbcopy <〜/ .ssh / id_rsa.pub
Max MacLeod
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.