when you execute a command in linux normally it goes to your monitor, if you want the output to be instead saved in a file you can use the redirection operator. the redirection operator will send the output to whatever file you want. for example, lets say you want to the your network configurations in a file you can use this command

# ifconfig > netconfigs.txt

so when you see what netconfigs.txt has you will see the output of ifconfig command