4Setting General System

4

Preferences

Commands you can use to set system preferences, usually set using the System Preferences GUI application.

Computer Name

You can use the systemsetup command to view or change a server’s computer name (the name used to browse for AFP share points on the server), which would otherwise be set using the Sharing pane of System Preferences.

Viewing or Changing the Computer Name

To display the server’s computer name:

$ sudo systemsetup -getcomputername

or

$ sudo networksetup -getcomputername

To change the computer name:

$ sudo systemsetup -setcomputername computername

or

$ sudo networksetup -setcomputername computername

Date and Time

You can use the systemsetup or serversetup command to view or change:

A server’s system date or time

A server’s time zone

Whether a server uses a network time server

These settings would otherwise be changed using the Date & Time pane of System Preferences.

31

Page 31
Image 31
Apple oxs manual Date and Time, Viewing or Changing the Computer Name, To display the server’s computer name