Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Terminal output to a file

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-02-2009
Member
 
Join Date: Jan 2009
Posts: 91
Terminal output to a file
  

Hello friends,

I need a help regarding ina file. Whenever i give a top > file1.txt.It's get opened but when i am opened it shown some characters and figures only.

Can anyone tell me how to save and show the result of top command in a file

Following are my PC Configuration

Intel Dual core 2.66 Ghz
915 MSI Motherboard with Intel chipset
512 mb RAM
GeForce 7300 GS
80gb HDD

Reply With Quote
  #2  
Old 26-02-2009
Member
 
Join Date: Dec 2008
Posts: 137
Re: Terminal output to a file

Try to do it with following command hope it works for you

| tee > file


PC Configuration

Intel Core 2 Duo 2.8 Ghz
G31 Asrock Motherboard with Intel chipset
2gb RAM
256 Nvidia Graphic Card
Reply With Quote
  #3  
Old 26-02-2009
Member
 
Join Date: Jan 2009
Posts: 91
Re: Terminal output to a file

I try to do it but it's not giving me the right solution.

Intel Dual core 2.66 Ghz
915 MSI Motherboard with Intel chipset
512 mb RAM
GeForce 7300 GS
80gb HDD
Reply With Quote
  #4  
Old 26-02-2009
Member
 
Join Date: Dec 2008
Posts: 152
Re: Terminal output to a file

Try to use the following code.

cmd 2>&1 >output.txt

or

cmd &>output.txt
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Terminal output to a file"
Thread Thread Starter Forum Replies Last Post
getting Error splicing file: Input/output error while copying file in ubuntu Rajni Operating Systems 10 09-01-2012 07:48 AM
Setting for Directory / File colors in SSH terminal connections AAID Operating Systems 4 12-11-2010 02:57 PM
Windows Batch file to output directory names and size to txt file m2thearkus Software Development 6 16-07-2010 01:04 AM
How to redirect the output of two programs in the same file Zombi Software Development 5 24-02-2010 10:55 PM


All times are GMT +5.5. The time now is 07:58 PM.