Add timezone command, change Date->Time

This commit is contained in:
Marcel Bischoff 2016-03-07 14:47:23 +01:00
parent 8449b7b910
commit ef39f37979

View File

@ -76,6 +76,7 @@ For more terminal shell goodness, please also see this list's sister list [Aweso
- [AppleScript](#applescript) - [AppleScript](#applescript)
- [Basics](#basics) - [Basics](#basics)
- [Clipboard](#clipboard) - [Clipboard](#clipboard)
- [Date and Time](#date-and-time)
- [FileVault](#filevault) - [FileVault](#filevault)
- [Information/Reports](#informationreports) - [Information/Reports](#informationreports)
- [Kernel Extensions](#kernel-extensions) - [Kernel Extensions](#kernel-extensions)
@ -93,7 +94,6 @@ For more terminal shell goodness, please also see this list's sister list [Aweso
- [Software Update](#software-update) - [Software Update](#software-update)
- [Spotlight](#spotlight) - [Spotlight](#spotlight)
- [System Integrity Protection](#system-integrity-protection) - [System Integrity Protection](#system-integrity-protection)
- [Time and Date](#time-and-date)
- [Terminal](#terminal) - [Terminal](#terminal)
- [Alternative Terminals](#alternative-terminals) - [Alternative Terminals](#alternative-terminals)
- [Shells](#shells) - [Shells](#shells)
@ -1460,8 +1460,19 @@ Reboot while holding <kbd>Cmd</kbd> + <kbd>R</kbd>, open the Terminal applicatio
csrutil enable && reboot csrutil enable && reboot
``` ```
### Time and Date ### Date and Time
#### List Available Timezones
```bash
sudo systemsetup -listtimezones
```
#### Set Timezone
```bash
sudo systemsetup -settimezone Europe/Berlin
```
#### Set Clock Using Network Time
```bash ```bash
# Status # Status
sudo systemsetup getusingnetworktime sudo systemsetup getusingnetworktime
@ -1473,6 +1484,8 @@ sudo systemsetup setusingnetworktime on
sudo systemsetup setusingnetworktime off sudo systemsetup setusingnetworktime off
``` ```
## Terminal ## Terminal
#### Ring Terminal Bell #### Ring Terminal Bell