NET 4000 Chapter Notes - Chapter 10.2.5: Shell Script, Number Sign, Working Directory

36 views2 pages
9 Dec 2017
School
Department
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents