我可以使用 .bash_profile 建立一個從檔案複製文字的別名嗎? 2024-5-21 • terminal osx 我在文件中保存了一長串文本,我想使用 Os X 10.11 終端輕鬆將其複製到剪貼簿 答案1 pbcopy < myfile.txt 或者 cat myfile.txt | pbcopy 參見man pbcopy和man pbpaste。 (這是特定於 Mac OS X 的;對於 Linux 有其他類似命令.) 相關內容