mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 22:42:41 +00:00
35 lines
591 B
Plaintext
35 lines
591 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, osx]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# scutil
|
|
|
|
> Manage system configuration parameters.
|
|
> Require root privileges when setting configuration.
|
|
> More information: <https://keith.github.io/xcode-man-pages/scutil.8.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}}`
|