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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-02-2007, 06:41 PM
|
#1
|
|
Member
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359
Rep:
|
Saving CLI data in the CLI
When using a Live CD, I recently had copied a string of data from the CLI using <ctrl>-C. I wanted to save the data, but couldn't get X to start, and was loaded on a Windows machine that I was visiting. How can I save the data that I copy in the CLI so that I can take it with me if I cannot start X? The machine did not have a floppy, but did have USB ports.
Thanks,

|
|
|
|
04-02-2007, 07:04 PM
|
#2
|
|
Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,817
|
I'm not sure what you mean exactly.
If you have copied a string of text from the command line, you could just save it to a text file and put it on a removable device or send it over the network.
You could directly pipe a command into a text file as well, something like:
Code:
lspci > devices.txt
|
|
|
|
04-02-2007, 07:34 PM
|
#3
|
|
Member
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359
Original Poster
Rep:
|
What I did was highlight text from the CLI and copy it with <ctrl> C, and I was not sure how to send it to a text file, like data.txt. If it was already a file, I know that I could use the mv or cp command, but I do not know what command or commands I would use from the CLI to send text that I copied from the CLI with <ctrl> C to a file on my USB stick or a floppy.
Like in your example, instead of lspci, what command would I use to pipe the data that I just copied with <ctrl>C to a file named data.txt?
I hope I was a little more clear this time; I'm sure it's an easy answer, I just cannot figure it out.
Thanks for replying,
|
|
|
|
04-03-2007, 12:05 AM
|
#4
|
|
Member
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 384
Rep:
|
Copy text.
Type echo [PasteTextHere] > data.txt.
That's it.
|
|
|
|
04-03-2007, 05:42 AM
|
#5
|
|
Member
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359
Original Poster
Rep:
|
I knew it had to be an easy answer, I just couldn't figure it out. Thanks a lot for the help, I'll be trying it out this morning.
Thanks again.

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
I'll CLI
|
oneandoneis2 |
General |
8 |
01-26-2006 01:41 PM |
|
Is CLI in or out?
|
C.B. |
Linux - General |
15 |
06-27-2005 02:57 AM |
|
CLI only
|
monkfish |
Linux - Newbie |
3 |
08-15-2003 04:13 PM |
|
More CLI!
|
NSKL |
Linux - General |
3 |
12-02-2002 08:52 PM |
|
CLI
|
Ruth |
Linux - General |
2 |
03-20-2001 05:24 PM |
All times are GMT -5. The time now is 06:55 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|