LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-16-2002, 02:05 PM   #1
shan
LQ Newbie
 
Registered: Dec 2001
Location: MA
Distribution: RedHat 7.1
Posts: 7

Rep: Reputation: 0
Redirect terminal output to file AND terminal


I've figured out how to redirect the terminal standard output to a file using " > " (e.g. ls -al > list.txt). Anyone know how to send output to the screen AND a file at the same time?
 
Old 01-16-2002, 10:33 PM   #2
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
hello,
command > file | cat file
 
Old 01-16-2002, 11:07 PM   #3
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try command | tee > file
 
1 members found this post helpful.
Old 09-29-2006, 09:36 AM   #4
GaryB
LQ Newbie
 
Registered: Sep 2006
Distribution: Redhat, Debian, Ubuntu, OpenSuse
Posts: 1

Rep: Reputation: 1
Post Use tee command

Try this one

{command} | tee file
 
1 members found this post helpful.
  


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
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 10:49 PM
How to direct output both log file and to terminal... freebies Linux - General 1 02-25-2005 07:32 AM
ftp a terminal and get file at my terminal suchi_s Programming 1 02-02-2005 07:25 AM
how to redirect the output of a terminal? cpukiller Linux - Networking 5 11-10-2004 08:07 AM
redirect telnet to serial line ; reverse terminal schirrmi Linux - Networking 1 04-14-2004 10:48 AM


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