Find the answer to your Linux question:
Results 1 to 4 of 4
I mean, if I open a terminal and after a while something has been printed to the screen, how can I find out the history of STDOUT? If there a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    Does anybody know how to list history output of STOUT


    I mean, if I open a terminal and after a while something has been printed to the screen, how can I find out the history of STDOUT? If there a command line to type or a place to find the outcome? I remember I did it one time, but now I cannot recall anything...

    Is anybody aware of this ? Thanks.

  2. #2
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    478
    I'm not sure whether all terminal output is logged by default. You can initiate a command (let's say nano) for example and put the output to a new file.

    For example: nano > file1.txt

    However you can review your own input by pressing the up arrow or using the history command or checking the contents of ~/.bash_history

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    2
    Yes, I see. So there is no a common command to view the output. Is it possible to config a univesal command for each terminal to show the STDOUT output? Maybe that's case of the system I used before.

    Thanks

  4. #4
    Linux User netstrider's Avatar
    Join Date
    Jul 2005
    Location
    South Africa
    Posts
    478
    Quote Originally Posted by lingchen View Post
    Yes, I see. So there is no a common command to view the output. Is it possible to config a univesal command for each terminal to show the STDOUT output?
    I am sure with Linux's versatility there are various ways with batch scripting being the most probable, but you'll have to search Google for that or ask some of the more knowledgeable guys around here if they could give you an example bash script or additional help.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •