Bash stdout (Standard Output)
stdout (standard output, file descriptor 1) is where a command writes its normal output.
By default it goes to the screen. Use > to send it to a file, or | to send it to another command. Error messages use a separate stream, stderr.
Send stdout to a file
> is short for 1>, so both lines do the same thing:
echo "Hello" > out.txt
echo "Hello" 1> out.txt
cat out.txt
Hello
Only stdout goes to the file
The error message still shows on the screen, because it is written to stderr:
ls out.txt missing.txt > list.txt
ls: cannot access 'missing.txt': No such file or directory
cat list.txt
out.txt