mirror of https://github.com/CrimsonTome/tldr.git
12 lines
145 B
Markdown
12 lines
145 B
Markdown
|
# hostname
|
||
|
|
||
|
> 显示或设置系统的主机名.
|
||
|
|
||
|
- 显示本机的主机名:
|
||
|
|
||
|
`hostname`
|
||
|
|
||
|
- 设置本机主机名:
|
||
|
|
||
|
`hostname {{新主机名}}`
|