LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-25-2005, 06:29 AM   #1
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
How to direct output both log file and to terminal...


hello

i have "command" which ouput to terminal
i can put that to filee useing "command >file.txt"

but how to do it so it goes to file.txt and ALSO terminal?

any ideas ? thx
 
Old 02-25-2005, 06:32 AM   #2
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 94

Rep: Reputation: 17
Use tee.

command | tee file.txt
 
  


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
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
How to direct output from make to a file? DDD25 Programming 6 07-25-2004 05:55 AM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07:17 PM
How to redirect standard output of piped command to log file andrewstr Linux - General 10 02-04-2004 02:07 PM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 02:57 AM


All times are GMT -5. The time now is 11:44 AM.

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