Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Unit 16: Troubleshooting and maintenance > Topic C: Scripting basics - Pg. 545

Troubleshooting and maintenance 16 ­ 23 Topic C: Scripting basics This topic covers the following CompTIA exam objectives for Linux+ [Powered by LPI] Certification, LX0-101 and LX0-102 exams. # 105.2 Objective Customize or write simple scripts Use standard sh syntax (loops, tests) Use command substitution Test return values for success or failure or other information provided by a command Perform conditional mailing to the superuser Correctly select the script interpreter through the shebang (#!) line Manage the location, ownership, execution, and suid-rights of scripts The following is a partial list of the used files, terms, and utilities: for while test if read seq 108.3 Mail Transfer Agent (MTA) basics The following is a partial list of the used files, terms, and utilities: sendmail emulation layer commands mail 110.2 Perform security administration tasks Audit a system to find files with the suid/sgid bit set Scripting Explanation Scripting is a means to automate repetitive tasks. You enter a series of commands into a text file. Then, you execute that script file, and the commands you specified are run. Your scripts can output information, prompt the user for information, and even perform basic logic functions, such as branching and looping.