1
0
Fork 0
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:
Laurent Indermühle 2021-01-30 22:00:35 +01:00 committed by GitHub
parent 0a3af1b152
commit 7c6dfb6d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ""`