mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
12 lines
200 B
Markdown
12 lines
200 B
Markdown
# hostnamectl
|
|
|
|
> Get or set the hostname of the computer.
|
|
|
|
- Get the hostname of the computer:
|
|
|
|
`hostnamectl`
|
|
|
|
- Set the hostname of the computer:
|
|
|
|
`sudo hostnamectl set-hostname "{{some_hostname}}"`
|