xclip в Ubuntu

Содержание
Введение
Установка
Файл в буфер
Вывод команды в буфер
Похожие статьи

Введение

Чтобы сэкономить время при работе с файлами и при обработке вывода команд можно установить xclip и перенаправлять вывод сразу в буфер обмена.

Это позволит не тратить время на выделение текста, копирование в втавку.

Установка

sudo apt install xclip

Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: xclip 0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded. Need to get 18.4 kB of archives. After this operation, 60.4 kB of additional disk space will be used. Get:1 http://fi.archive.ubuntu.com/ubuntu focal/universe amd64 xclip amd64 0.13-1 [18.4 kB] Fetched 18.4 kB in 0s (162 kB/s) Selecting previously unselected package xclip. (Reading database ... 441022 files and directories currently installed.) Preparing to unpack .../xclip_0.13-1_amd64.deb ... Unpacking xclip (0.13-1) ... Setting up xclip (0.13-1) ... Processing triggers for man-db (2.9.1-1) ...

Файл в буфер обмена

На примере SSH сертификата для GitLab

xclip -sel clip < ~/.ssh/gitlab_com_rsa.pub

Результат выполнения команды в буфер обмена

Синтаксис следующий

КОМАНДА | xclip

Например

ls | xclip

Вставить результат можно нажав средную кнопку мыши.

Article author: Andrei Olegovich

Похожие статьи
Ubuntu
Installation
Network Configuration
SSH: удалённый доступ
SCP: обмен файлами;
Firewall
Date and Time
X Window System Ubuntu
XRDP: Remote Desktop
VNC: Remote Desktop
Изменить machine-id
Изменить ulimit
xclip: работа с буфером обмена
Удалить старые ядра
FAQ
Файлы
Объединить .pdf файлы
diff: сравнение файлов
find: поиск файлов
kill: завершить процесс
make
signal: системные сигналы
env: переменные окружения
localectl: язык
systemctl: Список активных сервисов
cron: задания по расписанию
sudo

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: