Do you know the difference between the following Bash commands?
program 2>&1 >/tmp/log.txt
program >/tmp/log.txt 2>&1
If not, you might be interested in my latest blog post Bash Redirects Explained.
Hi! I'm Rickard from Sweden. I like programming. I like both the craft of it and also to write software that solves problems. I also like running.
Do you know the difference between the following Bash commands?
program 2>&1 >/tmp/log.txt
program >/tmp/log.txt 2>&1
If not, you might be interested in my latest blog post Bash Redirects Explained.