mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 17:06:01 +02:00
hostnamectl: add --pretty and --static examples (#5203)
This commit is contained in:
parent
0a3af1b152
commit
7c6dfb6d55
1 changed files with 9 additions and 1 deletions
|
@ -8,4 +8,12 @@
|
|||
|
||||
- Set the hostname of the computer:
|
||||
|
||||
`sudo hostnamectl set-hostname "{{some_hostname}}"`
|
||||
`sudo hostnamectl set-hostname "{{hostname}}"`
|
||||
|
||||
- Set a pretty hostname for the computer:
|
||||
|
||||
`sudo hostnamectl set-hostname --static "{{hostname.example.com}}" && sudo hostnamectl set-hostname --pretty "{{hostname}}"`
|
||||
|
||||
- Reset hostname to its default value:
|
||||
|
||||
`sudo hostnamectl set-hostname --pretty ""`
|
||||
|
|
Loading…
Add table
Reference in a new issue