LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2006, 11:45 AM   #1
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Rep: Reputation: 15
save an error message


How do I save the output from a command? I am getting an error message and I want to save it. How do I do that?
 
Old 05-20-2006, 11:48 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You can use >, e.g. to save the output from ls to a file called ls_list,

$ ls > ls_list
 
Old 05-20-2006, 12:51 PM   #3
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Original Poster
Rep: Reputation: 15
Thank you. I knew that it was something simple.

My next question is how do I look at the file in command line mode?
 
Old 05-20-2006, 12:53 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You can use cat, or if it's a long file and you want to scroll through, use less (in both cases, you just use the command followed by the filename).
 
Old 05-20-2006, 02:01 PM   #5
roofninja
Member
 
Registered: Jan 2006
Location: Asheville, NC
Distribution: 64 bit - ubuntu 7.10
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks again.
 
  


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
Error message received from system Error while reading filter description for true Steel_J Linux - Software 2 03-04-2006 06:10 PM
'error 2 reading header' error message from installer pauln600 Fedora - Installation 1 01-10-2006 09:00 AM
QMAIL error:554 Transaction failed: message format error mpk25 Linux - Software 1 10-15-2004 12:53 PM
error message when run MRTG: SNMP error zhgalaxy Linux - Newbie 0 02-18-2004 12:08 PM
why this error message is appear in xsession-error file? eye Red Hat 0 10-21-2003 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 AM.

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