Print working directory (Outputs the address of the current directory ) ls. These are very helpful when you want to list the contents of a folder. One reason you might want to do this is troubleshooting by monitoring the logs for the mdmclient process as you attempt to enroll the machine through DEP, tailing the Jamf log or whatever bootstrap processes you have that might get triggered before the machine has moved passed the Setup Assistant. These commands are the most commonly used set of commands. You can also launch Console as noted above.
Run softwareupdate to install all updates: softwareupdate -i -a.Enroll in the public beta feed: /System/Library/PrivateFrameworks/amework/Versions/A/Resources/seedutil enroll PublicSeed.Assuming you’ve already enabled root in single user mode (and that you are a member of the public beta program):
Here I’ll quickly cover how to enroll our un-configured Mac to receive betas from the public beta feed. If you have the Spotlight search button in the menu bar, then click on it directly. Rich Trouton has a very nicely detailed article on using seedutil in High Sierra to enroll a machine into Apple’s macOS beta software update channel that is worth a read. It is one of the quickest and easiest ways to open Terminal on Mac. One interesting thing we could do with this is to take an unconfigured machine with a release version of macOS and upgrade it to a beta version of macOS before it has been configured so, for instance, we could test upcoming changes in DEP enrollment. Now when we start up the machine and it is at the Setup Assistant, when we launch Terminal then change our user from _mbsetupuser to root with su.
Since Terminal is launching as _mbsetupuser, we can’t do anything that requires root level permissions. The most common use would be to get the IP address of the machine while it is at Setup Assistant using either ifconfig or networksetup. Pretty much anything that doesn’t require elevated privileges. Now that we have Terminal launched, what can we do with it? Terminal will then launch as _mbsetupuser which is the user that Setup Assistant runs as. When you are in Setup Assistant, you can open Terminal or Console by pressing: Recently I became aware that you can open Terminal (and Console) from the macOS Setup Assistant via keyboard shortcuts.