O'Reilly logo

Macintosh Terminal Pocket Guide by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required