mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 09:55:08 +00:00
Update cheatsheets
This commit is contained in:
29
hostname
Normal file
29
hostname
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# hostname
|
||||
|
||||
> Show or set the system's host name.
|
||||
> More information: <https://manned.org/hostname>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user