Two buffers in Linux

Source: Internet
Author: User

Unlike the Windows,linux system, there are two shear plates: one is called the selection buffer (X11 selection) and the other is the shear plate (clipboard).

Select buffer (buffer content is available elsewhere): You can use the middle mouse button or type Shift+insert to paste the contents of the selection buffer.

Of course you can use: $ xclip-out//To output the current selection buffer '

If there is no Xclip command, Debian/ubuntu can be installed under the following command:

$ sudo apt-get install Xclip

the Clipboard (buffered content is available only under VIM): The Clipboard is similar to the Clipboard in Windows, after selecting the text content, CTRL + C or select ' Copy ' in the menu, then the contents are stored in the Clipboard.

Use the following command to view the contents of the Clipboard:

$ xclip-out-sel Clipboard

Instead, the contents of the Clipboard are CTRL + V. However, in some cases, such as gnome-terminal, can not directly use the CTRL+C,CTRL+V, this time will be replaced with Shift+ctrl+c,shift+ctrl+v.

However, for some GUI programs, such as Gedit, can only be called by the middle mouse button to select the contents of the buffer, the use of Shift+insert, the call is the content of the Clipboard.

Two buffers in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.