剪贴板的内存位置
我正在寻找2个答案。
-
ubuntu在哪里存储剪贴板?
-
如何在终端中查看剪贴板文本而不是简单粘贴?
不幸的是,我不知道第一个问题的答案(如果有人知道,请编辑这个答案!)。 我知道第二个答案。
您需要安装一个名为xclip
的实用程序。
安装xclip
sudo apt-get update sudo apt-get install xclip
要查看剪贴板:
xclip -o -sel p
或者如果没有出现/错误:
xclip -o -sel c
这些选项意味着什么:
xclip: the program -o: Output to stdout (Standard Out, in this case, the terminal) -sel: Select clipboard -p: primary clipboard. Pretty much used for all copy/cut operations. (right-click, shortcut keys, etc.) -s: secondary clipboard. Pretty much not used anymore. :) -c: clipboard. Generally used for shortcut key copy/cut.
我应该关心哪一个?
primary
一个。 🙂