Bash Scripting Foundations
Learn the fundamentals of using the command line interface and creating scripts. This introductory series covers Terminal basics, navigating the macOS filesystem with the command line, parameters, loops, and demonstrates the value of incorporating scripts in Jamf Pro.
Scripting Series Overview
Become familiar with the content covered within this series.
11 min
Introduction to Terminal
Launch the Terminal app. List directory contents. Obtain information from a manual page.
14 min
Filesystem Navigation and Manipulation
Change directories. Create, rename, copy, and delete files and folders.
16 min
Common Commands
Open files and apps. Drag files into Terminal app. Move to the end or beginning of a command. Abort commands. Execute commands with elevated privileges.
15 min
File Permissions
Access file permissions from Terminal. Modify file permissions.
14 min
Scripting Basics
Use nano to create a simple bash script. Make the script executable.
15 min
Positional Parameters
Pass arguments through a script with parameters.
14 min
Command-Line Variables
Assign values to variables. Read those values with the CLI.
15 min
For Loops
Create an iteration statement to repeat a process.
16 min
If Statements
Run commands only if a condition is true.
16 min
While Loops
Perform a command while a condition is true.
17 min
Execute Commands
Execute bash commands with the Files and Processes payload.
15 min
Organize Scripts
Upload scripts to Jamf Pro. Configure scripts for deployment.
18 min
Deploy Basic Scripts
Deploy basic scripts with policies.
15 min
Custom Extension Attributes
Write a script for a computer extension attribute using the information from modules in the Scripting Series. Use the script to trigger a policy if a certain condition is not met. Create a smart group to send email notifications if that condition is not met.
21 min