NET 4000 Chapter Notes - Chapter 10.2.5: Shell Script, Number Sign, Working Directory
Document Summary
At its most basic level, a script is a command or commands stored in a file. When the shell reads the file, it executes the commands as if they were typed at the keyboard. When using scripts, remember to do the following: Specify the shell used to run the script, such as bash, csh, or ksh. Use comments to explain what the script does. Assign execute permissions to the script with the chmod command. Use one of the following methods to run the script: Add the folder that contains the script to the path environment variable, then enter the script name at the shell prompt. Save the script in a folder that is already in the path, such as /usr/bin or /bin, then enter the name of the script. Type the full path name to the script to run the script from anywhere.