Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

我可以使用 .bash_profile 建立一個從檔案複製文字的別名嗎?

tag-icon 2024-5-21 • tag-icon terminal osx
我可以使用 .bash_profile 建立一個從檔案複製文字的別名嗎?

我在文件中保存了一長串文本,我想使用 Os X 10.11 終端輕鬆將其複製到剪貼簿

答案1

pbcopy < myfile.txt

或者

cat myfile.txt | pbcopy

參見man pbcopy和man pbpaste。

(這是特定於 Mac OS X 的;對於 Linux 有其他類似命令.)

THE END
語法錯誤:意外的文件結尾 語法錯誤:意外的文件結尾
Centos 7 上的 Bash 補全非常不完整 Centos 7 上的 Bash 補全非常不完整

相關內容

熱門問答

熱門問答

  • terminal
  • osx
  • bash
  • centos
  • autocomplete

© 2024 rvso.com 版權所有. 網站地圖