The steps are shown in the following link:
[ Ссылка ]
You can purchase the following bash script cheat sheet from amazon.com to learn bash in short time.
[ Ссылка ]
linux terminal: How to Save an Output of a Command to a New File
How to save Command Prompt (CMD) output to a text file
Redirecting Linux Command Line Output to a File
Record All Screen Output to File - BASH -Linux
Ещё видео!