xclip в Ubuntu

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

Введение

Чтобы сэкономить время при работе с файлами и при обработке вывода команд можно установить 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

Related articles
aptitude in Ubuntu
Install AWS CLI in Ubuntu
Date and Time in Ubuntu
Ubuntu Errors
Install Ubuntu
Ubuntu Linux machine-id
Mount Disks and USB Drives in Ubuntu
Network Configuration in Ubuntu
Install Nginx in Ubuntu
Boot Ubuntu in Recovery Mode
Remove Old Kernels in Ubuntu
Two Users with the Same Name in Ubuntu
SCP: Copy Files in Linux
SSH in Ubuntu
Ubuntu Linux ulimit
VNC in Ubuntu
Wayland in Ubuntu 22.04
X Window System in Ubuntu
xclip in Ubuntu
Arrange Monitors in Ubuntu: xrandr
XRDP Remote Desktop in Ubuntu
Remote Desktop in Ubuntu
Check X Window System Type in Ubuntu

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.com
Write to 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: