File redirection
At this point we need to go over file redirection. This is the ability to have the output from a command or script be copied into a file instead of going to the screen. This is done by using the redirection operator, which is really just the greater than sign.
Here is the screenshot of some commands that were run on my system:
As you can see, the output from the ifconfig
command was sent (or redirected) to the ifconfig.txt
file.