So I'm going thru the O'Reilly Book
bash Cookbook and I though I had a good handle on redirects, stdout and stderr.
Example of redirecting stdout:
example > foo.txt
Example of redirecting stderr and stdout, which overrights in the process:
example2 &> foo.txt
In the book they give an older example of sending stderr and stdout to a file, and I don't understand why it is written the way it is.
Example from the book
example3 > foo.txt 2>&1
The 1 is a file descriptor? I'm not sure what that means in Linux? I though 1 was stdout?