2017-12-06 16:11:23 +00:00
|
|
|
# scutil
|
|
|
|
|
|
|
|
> Manage system configuration parameters.
|
2024-04-25 23:58:21 +01:00
|
|
|
> Require root privileges when setting configuration.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/scutil.8.html>.
|
2017-12-06 16:11:23 +00:00
|
|
|
|
|
|
|
- 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}}`
|