Example of output redirection:
Use help to see the internal commands
Using which and man commands you can get details.
Variable by nature is local.
Every single command that you are going to run is starting a sub shell by itself. And if you
want your variables to be available, then you will use export
export mynewvar=red