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.

systemsetup Syntax:

Terminal window
systemsetup [option] [parameter]

MacOS systemsetup Options:

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

systemsetup Parameters:

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

How to use systemsetup command:

Set the Network Time Server

Terminal window
sudo systemsetup -setnetworktimeserver time.apple.com

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

Get the Current Network Time Server

Terminal window
systemsetup -getnetworktimeserver

Displays the current network time server.

Enable Remote Desktop

Terminal window
sudo systemsetup -setremotelogin on

Enables remote desktop access on the Mac.

Check the Current Sleep Setting

Terminal window
systemsetup -getsleep

Displays the current sleep settings on the Mac.

Set the Computer Sleep Time

Terminal window
sudo systemsetup -setcomputersleep 30

Sets the computer sleep time to 30 minutes.

Enable Automatic Time Zone Detection

Terminal window
sudo systemsetup -setusingnetworktime on

Enables automatic time zone detection using network time.

Set the Time Zone

Terminal window
sudo systemsetup -settimezone Asia/Tokyo

Sets the time zone to Asia/Tokyo.

Turn on File Sharing

Terminal window
sudo systemsetup -setremotemanagement on

Enables file sharing by turning on remote management.

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?

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?

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?

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?

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?

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?

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?

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?

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

Terminal window
sudo systemsetup -setnetworklocation <location>

Applications of the systemsetup command

  • NetworkSetup
  • TimeServerSetup
  • Sleep
  • StartupDisk
  • NTP
  • Language
  • StartupModal
  • Busy
  • FirmwarePassword
  • WaitBehavior