From b2d534f9af2a28c46bd944e60a268bad9aeb5b57 Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Tue, 15 Dec 2015 18:57:07 +0200 Subject: [PATCH] hostname: add page --- pages/linux/hostname.md | 23 +++++++++++++++++++++++ pages/osx/hostname.md | 11 +++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pages/linux/hostname.md create mode 100644 pages/osx/hostname.md diff --git a/pages/linux/hostname.md b/pages/linux/hostname.md new file mode 100644 index 0000000000..b807d87b6d --- /dev/null +++ b/pages/linux/hostname.md @@ -0,0 +1,23 @@ +# hostname + +Show or set the system's host name + +- Show current host name + +`hostname` + +- Show the network address of the host name + +`hostname -i` + +- Show all network addresses of the host + +`hostname -I` + +- Show the FQDN (Fully Qualified Domain Name) + +`hostname --fqdn` + +- Set current host name + +`hostname {{new_hostname}}` diff --git a/pages/osx/hostname.md b/pages/osx/hostname.md new file mode 100644 index 0000000000..ed4c36a6cf --- /dev/null +++ b/pages/osx/hostname.md @@ -0,0 +1,11 @@ +# hostname + +Show or set the system's host name + +- Show current host name + +`hostname` + +- Set current host name + +`hostname {{new_hostname}}`