[Seek Help] 在 shell中可使用的剪切板命令是什么?
Tofloor
poster avatar
ti-ji
deepin
2022-05-27 00:12
Author

在 shell中可使用的剪切板命令是什么?

Reply Favorite View the author
All Replies
weboob
deepin
2022-05-27 00:32
#1

image.png
设置里面不都有吗

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-05-27 00:33
#2
  • 这个指的什么?是说在终端中的复制粘贴?

image.png

Reply View the author
waiting
deepin
2022-05-27 02:18
#3

linux 控制台通用粘贴命令

Shift+Insert

Reply View the author
ti-ji
deepin
2022-05-27 03:10
#4
weboob

image.png
设置里面不都有吗

抱歉,说的还是不够清楚。

我说的是在shell中使用的命令,不是终端快捷键

例如

echo 1234 | clip

Reply View the author
lanxing0821
deepin
2022-05-27 03:24
#5

手动安装xsel:

sudo apt install xsel

复制内容到剪切板:

echo -n "内容" | xsel --input --clipboard

读取剪切板内容:

cat <(xsel --output --clipboard)

Reply View the author
ti-ji
deepin
2022-05-27 03:24
#6
lanxing0821

手动安装xsel:

sudo apt install xsel

复制内容到剪切板:

echo -n "内容" | xsel --input --clipboard

读取剪切板内容:

cat <(xsel --output --clipboard)

额,所以,系统不内置对吗

Reply View the author
新手小白
deepin
2022-05-27 06:23
#7
It has been deleted!
ti-ji
deepin
2022-05-27 19:18
#8
新手小白 It has been deleted!

源中的vim版本是 8.1

version 明确显示了 -clipboard,不知道你vim是怎么支持剪切的?不要告诉我你使用的是终端的复制功能

为了 +clipboard 我还是使用的github 上的 vim.appimage(8.2)

你问我什么情况下使用,

最基本的就是管道,再者 tmux

windows 有 clip.exe

macos 有 pb{copy,paste}

*/linux 则需要安装

Reply View the author