mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 19:17:58 +01:00
e4118b1585
common/: dig, gzip, rm, sort, zfs, zpool linux/: apt-get, shutdown osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler Edits to existing pages: curl: Added simple download example find: Added iname and size exmaples grep: Edited -c description ps: Added wide lines example ssh: edited -D description, added simple port forwarding example unzip: added list option
24 lines
619 B
Markdown
24 lines
619 B
Markdown
# systemsetup
|
|
|
|
> Configure System Preferences machine settings
|
|
|
|
- Enable remote login (SSH)
|
|
|
|
`systemsetup -setremotelogin on`
|
|
|
|
- Specify TimeZone, NTP Server and enable network time
|
|
|
|
`systemsetup -settimezone {{US/Pacific}}`
|
|
`systemsetup -setnetworktimeserver {{us.pool.ntp.org}}`
|
|
`systemsetup -setusingnetworktime on`
|
|
|
|
- Make the machine never sleep; restart on freeze & power failure
|
|
|
|
`systemsetup -setsleep off`
|
|
`systemsetup -setrestartpowerfailure on`
|
|
`systemsetup -setrestartfreeze on`
|
|
|
|
- List valid startup disks, specify a new startup disk
|
|
|
|
`systemsetup -liststartupdisks`
|
|
`systemsetup -setstartupdisk {{path}}`
|