How does redirection work?
$ echo "Hello" > hello.txt
> command redirects the standard output to a file. Here,
"Hello" is entered as the standard input. The standard output
"Hello" is redirected by
> to the file hello.txt.
$ cat hello.txt
cat command outputs the contents of a file to the terminal. When you type
cat hello.txt, the contents of hello.txt are displayed.