Skip to content

systemsetup command in MacOS

The systemsetup command in MacOS is a powerful tool that allows users to manipulate various system settings directly through the terminal. With this command, you can configure network settings, set the time zone, enable or disable sleep options, and more. systemsetup offers a convenient way to manage system preferences without having to navigate through multiple menus. By utilizing the systemsetup command, users can streamline their workflow and efficiently customize their MacOS environment to suit their needs.

Terminal window
systemsetup [option] [parameter]
OptionDescription
-setusingnetworktimeEnables or disables network time syncing
-settimezoneSet the time zone
-setnetworktimeserverSet the network time server
-getusingnetworktimeGet the status of network time syncing
-gettimezoneGet the current time zone
-getnetworktimeserverGet the network time server
ParameterDescription
onEnable the specified option
offDisable the specified option
Network Time Server (e.g., time.apple.com)Specify the network time server
Timezone (e.g., “America/New_York”)Specify the time zone
Terminal window
sudo systemsetup -setnetworktimeserver time.apple.com

Sets the network time server to time.apple.com.

Terminal window
systemsetup -getnetworktimeserver

Displays the current network time server.

Terminal window
sudo systemsetup -setremotelogin on

Enables remote desktop access on the Mac.

Terminal window
systemsetup -getsleep

Displays the current sleep settings on the Mac.

Terminal window
sudo systemsetup -setcomputersleep 30

Sets the computer sleep time to 30 minutes.

Terminal window
sudo systemsetup -setusingnetworktime on

Enables automatic time zone detection using network time.

Terminal window
sudo systemsetup -settimezone Asia/Tokyo

Sets the time zone to Asia/Tokyo.

Terminal window
sudo systemsetup -setremotemanagement on

Enables file sharing by turning on remote management.

How do I enable remote login in MacOS using systemsetup?

Section titled “How do I enable remote login in MacOS using systemsetup?”

To enable remote login in MacOS using systemsetup, execute the following command:

Terminal window
sudo systemsetup -setremotelogin on

How can I check the current sleep setting in MacOS with systemsetup?

Section titled “How can I check the current sleep setting in MacOS with systemsetup?”

To check the current sleep setting in MacOS using systemsetup, run the following command:

Terminal window
systemsetup -getcomputersleep

How do I set the time server in MacOS using systemsetup?

Section titled “How do I set the time server in MacOS using systemsetup?”

To set the time server in MacOS using systemsetup, use the following command format:

Terminal window
sudo systemsetup -setnetworktimeserver <timeserver>

How can I turn off the hard disk sleep in MacOS with systemsetup?

Section titled “How can I turn off the hard disk sleep in MacOS with systemsetup?”

To turn off the hard disk sleep in MacOS using systemsetup, execute the following command:

Terminal window
sudo systemsetup -setharddisksleep off

How do I check the current timezone setting in MacOS using systemsetup?

Section titled “How do I check the current timezone setting in MacOS using systemsetup?”

To check the current timezone setting in MacOS with systemsetup, run the following command:

Terminal window
systemsetup -gettimezone

How can I set the computer name in MacOS using systemsetup?

Section titled “How can I set the computer name in MacOS using systemsetup?”

To set the computer name in MacOS using systemsetup, use the following command format:

Terminal window
sudo systemsetup -setcomputername <newname>

How do I enable automatic time and date settings in MacOS with systemsetup?

Section titled “How do I enable automatic time and date settings in MacOS with systemsetup?”

To enable automatic time and date settings in MacOS using systemsetup, execute the following command:

Terminal window
sudo systemsetup -setusingnetworktime on

How can I check the current status of remote management using systemsetup?

Section titled “How can I check the current status of remote management using systemsetup?”

To check the current status of remote management in MacOS with systemsetup, run the following command:

Terminal window
systemsetup -getremotelogin

How do I set the current network location in MacOS using systemsetup?

Section titled “How do I set the current network location in MacOS using systemsetup?”

To set the current network location in MacOS using systemsetup, use the following command format:

Terminal window
sudo systemsetup -setnetworklocation <location>
  • NetworkSetup
  • TimeServerSetup
  • Sleep
  • StartupDisk
  • NTP
  • Language
  • StartupModal
  • Busy
  • FirmwarePassword
  • WaitBehavior