How do you Copy and Paste in XTerm

Posted on 2004-10-19
Medium Priority
Last Modified: 2012-05-05
Besides the mouse buttons, are there hot keys to copy and paste in xterm?
Question by:DBDevOne
LVL 13

Expert Comment

ID: 12349432
The answer is DEPENDANT on which implementation of X you have.

FOR EXAMPLE:   In Gnome, found on RedHat and other distributions, COPY is Shift-Ctrl-C, and PASTE if Shift-Ctrl-V.

Your mileage may vary, again- this all depends on which "X" implementation and desktop manager you are running.

Hope this helps, --kcb

Expert Comment

ID: 12350461
You can highlight what you want to copy with your mouse and click right and left mouse button in the same time to the location you want to paste.

Accepted Solution

EinarTh earned 1000 total points
ID: 12360126
Nope. A litle explanation is in order.

There are actually 2 clipboards, one is the X clipboard, and the other is the DE clipboard.

You copy to the X clipboard by selecting the text with the mouse, and you paste by clicking the middle mouse button (both buttons on 2-button mice)

The DE clipboard (Gnome or KDE most often) have their own behavior and their applications usually use Ctrl+C/Ctrl+V like windows. Xterm is a pure X application, so unless you have a windows manager configured to grab the keystrokes, you don't have any hotkeys for it.


Author Comment

ID: 12364307
Thank you all!

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This article explains how to use the rsync command to create backups and sync data across hosts. Rsync is a very useful command that is often used to copy data, make backups, migrate hosts, and bridge the gap between site staging and production envi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question