tldr/pages/osx/hostname.md

13 lines
225 B
Markdown
Raw Normal View History

2015-12-15 16:57:07 +00:00
# hostname
> Show or set the system's host name.
> More information: <https://www.tutorialspoint.com/unix_commands/hostname.htm>.
2015-12-15 16:57:07 +00:00
- Show current host name:
2015-12-15 16:57:07 +00:00
`hostname`
- Set current host name:
2015-12-15 16:57:07 +00:00
`hostname {{new_hostname}}`