Chapter 5
Automation and Scripting
THE FOLLOWING COMPTIA LINUX+ EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:
5.1 Given a scenario, deploy and execute bash scripts
- Shell environments and shell variables
- PATH
- Global
- Local
export
env
set
printenv
echo
#!/bin/bash
- Sourcing scripts
- Directory and file permissions
chmod
- Extensions
- Commenting
- #
- File globbing
- Shell expansions
- ${}
- $()
- ``
- Redirection and piping
- Exit codes
stderr
stdin
stdout
- Metacharacters
- Positional parameters
- Looping constructs
while
- for
until
- Conditional statements
- if
case
- Escaping characters
- Shell environments and shell variables
5.2 Given a scenario, carry out version control using Git
- Arguments
clone
push
pull
commit
merge
branch
log
init
config
- Files:
.gitignore
.git/
- Arguments
5.3 Summarize orchestration processes and concepts
- Agent
- Agentless
- Procedures
- Attributes
- Infrastructure automation
- Infrastructure as code
- Inventory
- Automated configuration management
- Build automation
-
You are writing a shell script...