Forrest logo
back to the systemsetup tool

systemsetup:tldr:852aa

systemsetup: Specify a new startup disk.
$ systemsetup -setstartupdisk ${path-to-directory}
try on your machine

The command "systemsetup -setstartupdisk ${path-to-directory}" is a command that is used in macOS command line interface (CLI) to change the startup disk or the default boot drive of the computer.

Explanation of the command components:

  • "systemsetup" is the command-line utility that allows users to configure various system settings on macOS.
  • "-setstartupdisk" is an option or argument that instructs the "systemsetup" utility to change the startup disk.
  • "${path-to-directory}" represents the placeholder for the path to the desired startup disk directory or volume. You need to replace this placeholder with the actual path. The path should be the directory or volume that contains the operating system you want to set as the startup disk.

By running this command and providing the correct path to the desired startup disk, you can change the default boot drive of your macOS system to the specified directory or volume.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the systemsetup tool