Name
scutil
Synopsis
scutil [-v] [-p]
scutil [-v] [-d] -r { hostname | IP_addr [IP_addr] }
scutil [-v] -w key [-t timeout]
scutil [-v] --get { ComputerName | LocalHostName }
scutil [-v] --set { ComputerName | LocalHostName } [hostname]Description
Provides control of the System Configuration
framework’s dynamic store.
scutil is used to open an interactive session
with configd, in which various commands are
available to view and modify System Configuration keys.
As a quick example of interactive use, try this:
Invoke
scutil. You will be placed at thescutilprompt.Enter
opento open the session withconfigd.Enter
list. You will see a set of keys, some of which are provided by the System Configuration framework (such as the keys in theFile: domain), some of which are obtained from/Library/Preferences/SystemConfiguration/preferences.plist(theSetup: keys), and some of which are published by the configuration agents (theState: keys).Enter
show State:/Network/Global/DNSto display the DNS dictionary. You should see a list of DNS servers and search domains configured on your system.Enter
close, thenquit.
Options/Usage
- -d
Enables debugging output to standard error.
- --get
Prints the system’s computer name or Rendezvous hostname to standard output.
- -p
Enables a private API with additional commands, including
lock,unlock,touch,snapshot,n.file,n.signal,n.wait, andn.callback.- -r
Determines how the specified node (given as a hostname or an IP address) would be reached, printing the result to standard ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access