scutil
Manage system configuration parameters. Necessitates to be root when setting configuration. More information: https://ss64.com/osx/scutil.html.
-
Display DNS Configuration:
scutil --dns
-
Display proxy configuration:
scutil --proxy
-
Get computer name:
scutil --get ComputerName
-
Set computer name:
sudo scutil --set ComputerName {{computer_name}}
-
Get hostname:
scutil --get HostName
-
Set hostname:
scutil --set HostName {{hostname}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.