需要使用一個叫做 xsel 的工具。
可以直接使用如下代碼進行安裝:
sudo apt-get install xsel
然後使用如下命令均可將標準輸出重定向到系統剪切板:
cat file.txt | xsel
pwd | xsel
參考:http://www.techrepublic.com/blog/opensource/use-xsel-to-copy-text-between-cli-and-gui/2411
需要使用一個叫做 xsel 的工具。
可以直接使用如下代碼進行安裝:
sudo apt-get install xsel
然後使用如下命令均可將標準輸出重定向到系統剪切板:
cat file.txt | xsel
pwd | xsel
參考:http://www.techrepublic.com/blog/opensource/use-xsel-to-copy-text-between-cli-and-gui/2411
gcc file.c -o file 在輸入以上命令時不能成功編譯 需要做以下修改: gcc file.c -o file -lm
sudo apt-get install p7zip-full sudo apt-get remove rar sudo apt-get install unrar
sudo apt-get install non-free-codecs gxineplugin