Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-12-2003, 03:38 PM   #1
LQ Newbie
Registered: Sep 2002
Posts: 9

Rep: Reputation: 0
Cut and paste from command line

How does one cut and paste from a command line? Say I ifconfig and want to save it or paste it to gedit, how do I do that? Is there a really simple way? Thanks for any help.
Old 02-12-2003, 03:43 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
use your mouse - highlight the line, go to gedit and paste. even easier if you have a scroll wheel - just click the wheel to paste.
Old 02-12-2003, 04:15 PM   #3
LQ Newbie
Registered: Sep 2002
Posts: 9

Original Poster
Rep: Reputation: 0
I have tried doing that but I guess I must be doing something wrong. I am in Gnome, I launch a terminal and I type a command (ex. ifconfig), I then get a response. If I want to paste the response in gedit, do I only highlight the response with my mouse (no right click) and then go to gedit and then click on the paste button or ctrl + v? I tried that and it did not work. I must be missing something.
Old 02-12-2003, 04:18 PM   #4
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
If you have a 3 button mouse, or a wheel mouse, you can just highlight the text you want in the terminal, then go to the area you want to paste, and click your middle mouse button or your wheel. However, if you've got a 2 button mouse, you'll have to make sure that "Emulate3buttons" is not commented out (doesn't have a # at the beginning of the line) in your /etc/X11/XF86Config. All you have to do is highlight the text you want to copy, then go the area you want to paste and then simultaneously click your left and right mouse buttons. Easy as that. Hope this helps.
Old 02-12-2003, 04:44 PM   #5
LQ Newbie
Registered: Sep 2002
Posts: 9

Original Poster
Rep: Reputation: 0
That worked, thanks alot.
Old 02-12-2003, 05:48 PM   #6
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
No problem. Glad I could help.
Old 10-12-2010, 11:52 AM   #7
LQ Newbie
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Cut & Paste

[mod_edit]Please don't use LQ to drive traffic to your blog[/mod_edit]

Last edited by Tinkster; 10-12-2010 at 01:39 PM.
Old 10-12-2010, 04:46 PM   #8
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Rep: Reputation: 3
If you want to use the keyboard, 'Ctrl + Shift + C' works for me.
Old 10-12-2010, 10:07 PM   #9
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Supplement: there are two ways to paste into Terminal: (Ctrl + Shift + V) or (Shift + Insert). Just try and distinguish them.
Old 10-12-2010, 10:31 PM   #10
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
In gnome terminal you right click and copy and paste.
I believe in normal terminal you select the text with the mouse and then just right click and paste.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy-paste on command line? jameshao Linux - General 3 02-02-2009 02:14 AM
Cut & Paste Rick069 Linux - General 1 04-15-2005 05:58 PM
Copy Paste under command line? Stingreen Linux - General 7 02-10-2002 07:46 PM
cut and paste. argh! JustinHoMi Linux - General 7 11-12-2001 10:01 PM
cut and paste c0c0deuz Linux - Newbie 6 11-01-2001 01:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration