LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 01-16-2002, 02:05 PM   #1
shan
LQ Newbie
 
Registered: Dec 2001
Location: MA
Distribution: RedHat 7.1
Posts: 7
Thanked: 0
Redirect terminal output to file AND terminal


[Log in to get rid of this advertisement]
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?
shan is offline     Reply With Quote
Old 01-16-2002, 10:33 PM   #2
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 277
Thanked: 0
hello,
command > file | cat file
pbharris is offline     Reply With Quote
Old 01-16-2002, 11:07 PM   #3
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183
Thanked: 0
Try command | tee > file
linuxcool is offline     Reply With Quote
Old 09-29-2006, 09:36 AM   #4
GaryB
LQ Newbie
 
Registered: Sep 2006
Distribution: Redhat, Debian, Ubuntu, OpenSuse
Posts: 1
Thanked: 0
Post Use tee command

Try this one

{command} | tee file
GaryB is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
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 10:34 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration