Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-27-2008, 05:27 PM   #1
Registered: Jun 2008
Posts: 405

Rep: Reputation: 31
quick question about dumping output to a file

I can dump output to a file with > but what if I want it to go to the console and also to a file? Can I do both at once?
Old 08-27-2008, 05:35 PM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
you can use the tee command
cat file | tee output
Old 08-27-2008, 05:41 PM   #3
Registered: Jun 2008
Posts: 405

Original Poster
Rep: Reputation: 31
nice, that's exactly what I needed (and could not easily find in a google search)


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
Perl Dumping output into logfile. misconfiguration Programming 6 08-10-2007 02:19 AM
Quick question about tar (backup) with same file extension nguyendh Linux - General 6 04-16-2007 10:26 AM
Quick File permission question james.farrow Linux - General 4 02-15-2007 07:18 AM
How to keep reading a file (quick question) 1veedo Linux - Newbie 2 12-29-2005 03:56 PM
quick File Manager question wrybread Linux - Newbie 1 12-04-2005 02:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration