mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 01:15:52 +02:00
hostname: add page
This commit is contained in:
parent
84c012a362
commit
b2d534f9af
2 changed files with 34 additions and 0 deletions
23
pages/linux/hostname.md
Normal file
23
pages/linux/hostname.md
Normal file
|
@ -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
pages/osx/hostname.md
Normal file
11
pages/osx/hostname.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue