LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-05-2002, 02:14 PM   #1
Terri
Member
 
Registered: Jun 2001
Location: NY
Distribution: RedHat 7.2
Posts: 46

Rep: Reputation: 15
Command line Text


Is there any way for me to (essentially) copy text from stuff I have done in the Command (or whatever one calls it) Window and paste it into GEdit or another text-type program?

Thanks in advance for any tips!

Terri
 
Old 04-05-2002, 02:22 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
do you mean like redirect it to a text file.. after some sort of commands you just ran, to display the output to text file ??

you can run a command like say for ex:

ps -aux > newfile.txt

and that would put whatever ps-aux outputs into the file newfile.txt

Is that what your looking for ??

-trickykid
 
Old 04-05-2002, 02:23 PM   #3
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
If gpm and mouse are setup correctly, then you should be able to drag over the text in the prompt, no need to right click or anything, it's automatically copied and then in the editor of choice click your middle (if you have a scroll wheel or third button) or third button and it should paste it right in.
 
Old 04-05-2002, 02:32 PM   #4
Terri
Member
 
Registered: Jun 2001
Location: NY
Distribution: RedHat 7.2
Posts: 46

Original Poster
Rep: Reputation: 15
trickykid: I did a bunch of stuff, well I installed some things and I want to note all the options that I choose (so that if I ever have to do it again).
All I really want to do is get it in a text format so I can email it to myself.
I can scroll back through all the stuff that I did but I canít seem to find a way to "copy" it.

taz.devil: I donít even know where youíre going. Do I have to highlight everything then open GEdit and drag it all into that window?
I'm kinda an MS user here so be gentle. Talk to me like I'm 4.
 
Old 04-05-2002, 02:40 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
right... dead easy

1) use the mouse to drag over the text you want.
2) click the third mouse button (or BOTH if there's only two) where you want the text to go.
 
Old 04-05-2002, 02:54 PM   #6
Terri
Member
 
Registered: Jun 2001
Location: NY
Distribution: RedHat 7.2
Posts: 46

Original Poster
Rep: Reputation: 15
omg
I canít tell if Iím a total incompetent retard or if itís more than that.
If I highlight the whole thing, as soon as I click on it again to drag it then the highlight goes away.
So I tried a few more things, like just trying to take a smaller section and I think Iím just missing something somewhere.

Remember, Iím only 4.
 
Old 04-05-2002, 02:59 PM   #7
abrakadabra
Member
 
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109

Rep: Reputation: 16
Hi Terri, this may help. For every command you enter on the command line, these are kept in the history. If you type history at the command line you'll get all commands enter. Goes back depending on how your SETHIST is set up. So, what you can do is type history > [file] where file is what ever you want to name this file. This is going to put all your history in this file.
I hope this helps.

 
Old 04-05-2002, 03:00 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
ahh c'mon man that's TWO commands!! you can do that!

where does it say to actaully drag the text to anywhere else? it's JUST those two actions. NOTHING else. That's "drag over" as in highlight of course, not draggign the text to somewhere else...
 
Old 04-05-2002, 03:10 PM   #9
Terri
Member
 
Registered: Jun 2001
Location: NY
Distribution: RedHat 7.2
Posts: 46

Original Poster
Rep: Reputation: 15
Hey, that history thing was pretty cool.
The only problem is that the last thing I did was ./INSTALL and Iím really looking for the answers that I gave to all the questions that the install asked me.
I had begun to copy it out by hand but Iím looking for something that:
1. Looks neater
2. Doesnít require me to do as much work
3. Is storable so I can reference it later should I need to
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing text size on command line anvilmonkey Linux - Software 1 03-21-2005 03:40 PM
chpasswd from a command line (without a text file) mpgram Linux - Security 1 04-18-2004 05:44 PM
Copy text from command line Duukkis Linux - General 8 08-25-2003 01:29 PM
VI text editor in command line InSane103 Linux - Software 4 07-09-2003 09:04 PM
command line text formating anyone? DavidPhillips Linux - General 2 11-25-2001 06:26 PM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration