LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2003, 11:37 PM   #1
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Very stupid question


Ok, at this moment in time I do not consider myself a completely new comer to the linux arena, but there is still an issue that I have been unable to do, and for that matter, very important when you want other people from the community to help you... here is my QUITE stupid question...

Ho do I redirect the output of a command to a file, so I can open it and check what the heck is wrong and/or post it to the mailing lists/forums?

I, like everybody else have had some real good troubles while using Linux, specially when trying to compile software that for some obscure reason will never compile or simply when you want track a driver error down and you simply see the output on your screen fly by. And when you try to move up in the console (shift+pgup/down) you find that the error was beyond the buffer. I know that I should have known how to accomplish this sooner (I mean I have been almost exclusively using Linux for the last 2 years and began 5 years ago!)... and still I do not know how to redirect my stdout output to a file I am most embarrassed

Last edited by Thetargos; 03-31-2003 at 11:40 PM.
 
Old 03-31-2003, 11:51 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
to redirect stdout:

command > filename

to redirect stderror

command 2> filename

BTW don't feel bad, there's millions of little tricks in linux
 
Old 04-01-2003, 12:06 AM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
I know, buddy but I just shoulda' known before... I mean I'm a five year old linux user (meaning that I have been using for five years now... hehe) and I DID NOT KNOW HWO TO DO IT!!! If I should have asked before I could have saved me TONS of reinstalls and misinstalls!!!

Yet again, learning linux is cool, fun and challenging, that is why I choose it and now that why today my hd said good bye to Windows hopefully for EVER!
 
Old 04-01-2003, 12:50 AM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
I've been using it for 3 years now and somebody just showed me yesterday the alt-tab trick to cycle through windows in KDE. I just stood there and shook my head, pondering all the times that I minimized a dozen windows just to find the one I was hunting for. So I feel your pain.
 
Old 04-01-2003, 01:24 PM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Or the alt+F1-F4 (with 4 workspaces) to cycle through them. Yes... I mean there are literally hundreds if not thousdands of little tricks... But I feel quite stupid about the redirectioning the output because it is nearly a MUST when reporting a problem to others so they can anctually see what the problem is.
 
Old 04-01-2003, 02:13 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Another sweet way of doing that kind
of thing is
command 2>&1 | tee my.log
:)
That way you can still watch what's happening
while happily writing away ;)

Cheers,
Tink
 
Old 04-01-2003, 03:21 PM   #7
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Its no big deal that you dont know a Linux trick, I mean there are thousands of Windows tricks you've probobly learned, and how long did that take you?
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid question.... PenguinPwrdBox Linux - Networking 1 09-16-2004 04:54 AM
Maybe a stupid question.... Coolstar Linux - Software 1 11-01-2003 06:58 PM
Another Stupid Question Bobmeister Linux - Hardware 3 05-26-2003 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 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