From 8125f34ee7ffaaf31d95aaefa3f10080f0613bdb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 7 May 2017 09:45:47 +0100 Subject: [PATCH] New command: hostnamectl --- pages/linux/hostnamectl.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/linux/hostnamectl.md 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}}"`