Goal
Access the jamf binary from Terminal. Run management commands using the jamf binary.
Video
Key points
-
Terminal is a command-line interface (CLI) application that is used to run commands, tools, and scripts.
-
Terminal can be found in /Applications/Utilities.
-
Binary files that handle specific tasks or tools on a Mac can be run from Terminal.
-
Commands can be executed by typing the name of these files into the command line.
-
-
The
mancommand provides the user manual for a command.-
For example,
man pwdprovides the manual pages for thepwdcommand.
-
-
The
pwdcommand prints the current working directory. -
The
~represents the current user's home directory. -
The jamf binary is a small file installed during enrollment that handles most management tasks on a Mac.
-
The jamf binary can be accessed from Terminal with the command
jamf.
-
-
The jamf binary manual page can be accessed with the command
jamf help. -
Any management action taken by the policy must be run as the root user on a Mac.
-
This is done by using
sudoprior to the command and authenticating with an administrator account. -
For example,
sudo jamf policywill initiate a check-in with Jamf Pro andsudo jamf reconwill initiate an inventory update with Jamf Pro.
-
Review
To view answers, click arrow next to each question.
Practice
-
Open Terminal on a test Mac enrolled in Jamf Pro.
-
Run the command
pwd. What value is returned? -
Run the command
sudo jamf reconand read the output. What happened? -
Run the command
sudo jamf policyand read the output. What happened? -
Run the command
jamf helpand review what actions are available in the jamf binary.
Resources
Jamf Pro Documentation
Terminal User Guide
Apple