9
submitted 10 months ago* (last edited 10 months ago) by IndigoGollum@lemmy.world to c/linuxmint@lemmy.ml

A game i play, Terraria, tends to work fine for a while then freeze for anywhere from a few seconds to until i force my computer to restart. I'd like to know why it does this and how i can fix it. I figure a good start is running the game from the terminal and recording that terminal's output.

Just saving the output to a file manually isn't an option because when the problems start my computer is frozen. What i need is some way to make it write the output to a file as the program runs, and save that regularly so i still have most of it even if my computer crashes.

Is there something i can append to any command to do this, or maybe some other command that enables logging? I'm using MATE 22.2, if that helps.


Adding >>log.txt 2>>error.txt to the end of the command works. File names are arbitrary, but the error log is specified by 2>> instead of just >>. Thanks everyone.

you are viewing a single comment's thread
view the rest of the comments
[-] dxc@sh.itjust.works 3 points 10 months ago* (last edited 10 months ago)

Thanks for the link, what a good explanation. Although reading through stderr gave me the impression its written by an LLM because of the use of 2>>

Appending stderr output using 2>> (append mode): ls non_existent_file 2>> error_log.txt

gfg0622 @Anshu-ka-lappi:-$ cat error_log.txt ls: cannot access 'non existent file': No such file or directory ls: cannot access 'non 'non_exist existent file 2': No such file or directory

this post was submitted on 03 Dec 2025
9 points (90.9% liked)

Linux Mint

3665 readers
3 users here now

Linux Mint is a free Linux-based operating system designed for use on desktop and laptop computers.

Want to see the latest news from the blog? Set the Firefox homepage to:

linuxmint.com/start/

where is a current or past release. Here's an example using release 21.1 'Vera':

https://linuxmint.com/start/vera/

founded 5 years ago
MODERATORS