Instead of typing all of these commands, you could group them into a shell script . We described shell scripts briefly in Section 3.13.1 . Let's look at this shell script. The second line is a comment . The rest of the lines in the script are just commands, as you would type them to the shell directly.
Permissions are important for shell scripts.
If you create a shell script, you must make sure that you have execute permission on the script in order to run it .