Răsfoiți Sursa

Merge pull request #360 from igorshubovych/hostname

hostname: add page
Igor Shubovych 9 ani în urmă
părinte
comite
a2fc6cc1db
2 a modificat fișierele cu 34 adăugiri și 0 ștergeri
  1. 23 0
      pages/linux/hostname.md
  2. 11 0
      pages/osx/hostname.md

+ 23 - 0
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}}`

+ 11 - 0
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}}`