diff --git a/pages/linux/hostnamectl.md b/pages/linux/hostnamectl.md new file mode 100644 index 0000000000..de77a762ea --- /dev/null +++ b/pages/linux/hostnamectl.md @@ -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}}"`