转载自MAC 终端(命令行)剪切版的使用 pbcopy - 复制到剪切板 cat a.txt | pbcopy 将a.txt文件类容写入剪切板,相当于 cmd + c pbpaste - 粘贴到终端 pbpaste 将刚刚存入剪切板的a.txt内容复制到终端,相当于 cmd + v