[SOLVED] (Solved) Where is the output file for the terminal?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
(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 10:22 AM.
Reason: Solved
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.