Linux如何将命令行输出直接复制到剪贴板

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
xsel --clipboard
xsel --clipboard
xsel --clipboard

可以加个alias,和mac弄成一样得命令:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
alias pbcopy='xsel --clipboard'
alias pbcopy='xsel --clipboard'
alias pbcopy='xsel --clipboard'

 

One thought on “Linux如何将命令行输出直接复制到剪贴板

Leave a Reply

Your email address will not be published. Required fields are marked *