Results 1 to 4 of 4

Thread: Terminal output to a file

  1. #1
    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

  2. #2
    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

  3. #3
    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

  4. #4
    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

Similar Threads

  1. Replies: 10
    Last Post: 09-01-2012, 07:48 AM
  2. Replies: 4
    Last Post: 12-11-2010, 02:57 PM
  3. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  4. How to redirect the output of two programs in the same file
    By Zombi in forum Software Development
    Replies: 5
    Last Post: 24-02-2010, 10:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,826,354.57053 seconds with 16 queries