mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-13 22:15:42 +02:00
New command: hostnamectl
This commit is contained in:
parent
73ec3a8811
commit
8125f34ee7
1 changed files with 11 additions and 0 deletions
11
pages/linux/hostnamectl.md
Normal file
11
pages/linux/hostnamectl.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# 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}}"`
|
Loading…
Add table
Reference in a new issue