LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-07-2014, 09:50 AM   #1
wmichaelb
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Unhappy (Solved) Where is the output file for the terminal?


I've been cutting and pasting the terminal output after a Debian update into a text file that I closed during a senior moment. I can find each individual line in the terminal by hitting the up arrow key, so I assume that that content is stored in a file somewhere. Can someone please tell me where? Thanks in advance.

Last edited by wmichaelb; 05-07-2014 at 11:22 AM. Reason: Solved
 
Old 05-07-2014, 10:00 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,767

Rep: Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886
If I understand it correctly it is stored in memory, not in file. Probably you can paste it again into another text file.
 
Old 05-07-2014, 10:03 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,825
Blog Entries: 12

Rep: Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008
There isn't a file. If you're using a window manager and have a command prompt open there which has scrollbar and history, you can grab all that the window history contains and paste that into a text document. Whichever editor you were using may have kept a backup of your last interim edits. Check for files containing # or ~ characters in them in the same starting location where you began your edits from, they may be hidden files which start with a period character at the start of the file name, but they'll have most if not all of the edit file name's name. Then copy that backup file to another file so that you retain it and see if that has most of your most recent edits. I think it all depends if it made a sync backup and when it last did that, to determine how much you can recover or how much you stand to lose.

What exact editor were you using? Those familiar can let you know what they know about that editor's backup practices, or not.

There's actually been a few recent posts about keeping record logs for command line progress:

http://www.linuxquestions.org/questi...ux-4175504061/
http://www.linuxquestions.org/questi...on-4175502162/

Last edited by rtmistler; 05-07-2014 at 10:05 AM.
 
1 members found this post helpful.
Old 05-07-2014, 10:04 AM   #4
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,181

Rep: Reputation: 243Reputation: 243Reputation: 243
If you can see it in the terminal, it's worth trying
Code:
history > file-of-forgotten-bits
That's just a guess, though.
 
1 members found this post helpful.
Old 05-07-2014, 11:24 AM   #5
wmichaelb
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks!
1.) I learned the history command. For some reason, the command did not return all the content I was looking for, but onl
the last few lines. But it's great to know.
2.) I found the text file I was looking for by clicking on "reopen". I thought that I'd checked that, but apparently not.
The data is now safely saved on a thumb drive for debugging.
 
Old 05-07-2014, 01:41 PM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,550

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
Please use the Thread Tools to mark the question as SOLVED
 
  


Reply

Tags
command line


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
How to Copy Terminal Output to a File SkM007 Linux - Newbie 10 01-03-2016 05:17 PM
Crontab doesn't give the output of the file it runs in terminal pranavojha Linux - Software 3 08-24-2013 05:19 PM
Redirect ALL terminal output to file and screen (for entire session) Mountain Linux - Software 9 07-08-2010 11:50 AM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 09:36 AM
How to direct output both log file and to terminal... freebies Linux - General 1 02-25-2005 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration