xclip в CentOS

Содержание
Introduction
Установка
Файл в буфер
Вывод команды в буфер
Related Articles

Introduction

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

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

Установка

Сперва нужно установить epel-release

sudo yum install epel-release
…
sudo yum install xclip

Extra Packages for Enterprise Linux Modular 8 - x86_64 1.5 MB/s | 931 kB 00:00 Extra Packages for Enterprise Linux 8 - x86_64 4.7 MB/s | 10 MB 00:02 Last metadata expiration check: 0:00:02 ago on Mon 30 Aug 2021 09:46:37 AM EDT. Dependencies resolved. ====================================================================================================== Package Architecture Version Repository Size ====================================================================================================== Installing: xclip x86_64 0.13-8.el8 epel 35 k Transaction Summary ====================================================================================================== Install 1 Package Total download size: 35 k Installed size: 60 k Is this ok [y/N]: y Downloading Packages: xclip-0.13-8.el8.x86_64.rpm 257 kB/s | 35 kB 00:00 ------------------------------------------------------------------------------------------------------ Total 65 kB/s | 35 kB 00:00 warning: /var/cache/dnf/epel-6519ee669354a484/packages/xclip-0.13-8.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY Extra Packages for Enterprise Linux 8 - x86_64 1.0 MB/s | 1.6 kB 00:00 Importing GPG key 0x2F86D6A1: Userid : "Fedora EPEL (8) <epel@fedoraproject.org>" Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : xclip-0.13-8.el8.x86_64 1/1 Running scriptlet: xclip-0.13-8.el8.x86_64 1/1 Verifying : xclip-0.13-8.el8.x86_64 1/1 Installed products updated. Installed: xclip-0.13-8.el8.x86_64 Complete!

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

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

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

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

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

КОМАНДА | xclip

Например

ls | xclip

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

Article author: Andrei Olegovich

Похожие статьи
CentOS
Network Configuration
Date Time
X Window System CentOS
XRDP: Remote Desktop
VNC: Remote Desktop
Change machine-id
Change ulimit
xclip: Buffer
docker-ce: install in CentOS 8
FAQ
Errors
Install virtual CentOS on Ubuntu
Docker container CentOS with SSH access
Setting the date and time in CentOS
Installing docker-ce in CentOS 8
CentOS
CentOS Linux machine-id
Network Configuration в CentOS
News CentOS
Selinux CentOS Linux
ulimit CentOS
X Window System CentOS
xclip в CentOS
Remote Desktop в CentOS
Banner image

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: