Name
scutil — stdin stdout - file -- opt --help --version
Synopsis
scutil [options
] [arguments
]
The scutil
command (“system
configuration utility”) can display basic network information, set the
computer hostname, and perform several other tasks. For example, view
your computer name with:
➜ scutil --get ComputerName
My Macintosh
change the computer name with:
➜ sudo scutil --set ComputerName banana
check if another host is reachable from your Mac (though the
ping
command is more
informative):
➜ scutil -r www.apple.com
Reachable
or view technical DNS information with:
➜ scutil --dns
DNS configuration
resolver #1
search domain[0] : home
nameserver[0] : 192.168.1.1
resolver #2
...
The program has other uses as well, like interacting with the
system configuration daemon (configd
), but they are beyond the scope of
this book.
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.