9
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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:
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
programname >>my_output.txt 2>>my_errors.txtThis will run
programname(replace that with name of the program you actually want to run) and append its standard output and standard error to the filesmy_output.txtandmy_errors.txt(those filenames are arbitrary, you can call them whatever you want).If you use
>instead of>>it will overwrite the specified files each time you run it again, instead of appending to them if they already exist as>>does. In either case the files will be created if they do not exist.You can read more about redirecting I/O in UNIX shells here.
That works, thanks. I thought at first it didn't but apparently there's not normally as much stuff printed to the terminal as i expected.