Bash Scripting Foundations

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.

rate limit

Code not recognized.

Scripting Series Overview
Become familiar with the content covered within this series.
11 min
macOS Jamf Pro type-module product-pro en-us Engineer
Introduction to Terminal
Launch the Terminal app. List directory contents. Obtain information from a manual page.
14 min
macOS Jamf Pro type-module product-pro en-us
Filesystem Navigation and Manipulation
Change directories. Create, rename, copy, and delete files and folders.
16 min
macOS Jamf Pro type-module product-pro en-us
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
macOS Jamf Pro type-module product-pro en-us
File Permissions
Access file permissions from Terminal. Modify file permissions.
14 min
macOS Jamf Pro type-module product-pro en-us
Scripting Basics
Use nano to create a simple bash script. Make the script executable.
15 min
macOS Jamf Pro type-module product-pro en-us
Positional Parameters
Pass arguments through a script with parameters.
14 min
macOS Jamf Pro type-module product-pro en-us
Command-Line Variables
Assign values to variables. Read those values with the CLI.
15 min
macOS Jamf Pro type-module product-pro en-us
For Loops
Create an iteration statement to repeat a process.
16 min
macOS Jamf Pro type-module product-pro en-us
If Statements
Run commands only if a condition is true.
16 min
macOS Jamf Pro type-module product-pro en-us
While Loops
Perform a command while a condition is true.
17 min
macOS Jamf Pro type-module product-pro en-us Engineer
Execute Commands
Execute bash commands with the Files and Processes payload.
15 min
macOS Jamf Pro type-module product-pro en-us
Organize Scripts
Upload scripts to Jamf Pro. Configure scripts for deployment.
18 min
macOS Jamf Pro type-module product-pro en-us
Deploy Basic Scripts
Deploy basic scripts with policies.
15 min
macOS Jamf Pro type-module product-pro en-us
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
Inventory Groups Computer Management macOS Jamf Pro type-module product-pro en-us