New command: hostnamectl
This commit is contained in:

committed by
Agniva De Sarker

parent
73ec3a8811
commit
8125f34ee7
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}}"`
|
Reference in New Issue
Block a user