LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-12-2003, 02:38 PM   #1
dulli1
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, 02:43 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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, 03:15 PM   #3
dulli1
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, 03:18 PM   #4
Texicle
Member
 
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, 03:44 PM   #5
dulli1
LQ Newbie
 
Registered: Sep 2002
Posts: 9

Original Poster
Rep: Reputation: 0
That worked, thanks alot.
 
Old 02-12-2003, 04:48 PM   #6
Texicle
Member
 
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, 10:52 AM   #7
camposer
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 12:39 PM.
 
Old 10-12-2010, 03:46 PM   #8
schachwizard
Member
 
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, 09:07 PM   #9
quanta
Member
 
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, 09:31 PM   #10
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
  


Reply


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 01:14 AM
Cut & Paste Rick069 Linux - General 1 04-15-2005 04:58 PM
Copy Paste under command line? Stingreen Linux - General 7 02-10-2002 06:46 PM
cut and paste. argh! JustinHoMi Linux - General 7 11-12-2001 09:01 PM
cut and paste c0c0deuz Linux - Newbie 6 11-01-2001 12:38 PM


All times are GMT -5. The time now is 11:07 PM.

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