mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
29 lines
495 B
Markdown
29 lines
495 B
Markdown
|
|
## Name
|
||
|
|
|
||
|
|
hostname - print or set hostname
|
||
|
|
|
||
|
|
## Synopsis
|
||
|
|
|
||
|
|
```**sh
|
||
|
|
$ hostname [hostname]
|
||
|
|
```
|
||
|
|
|
||
|
|
## Description
|
||
|
|
|
||
|
|
`hostname` prints current host name. If the `hostname` argument is give and the user is a superuser, the utility sets the current host name to its value. The maximum hostname length is 64 characters. The hostname is not persisted after reboot.
|
||
|
|
|
||
|
|
## Examples
|
||
|
|
|
||
|
|
```sh
|
||
|
|
# Print current hostname
|
||
|
|
$ hostname
|
||
|
|
courage
|
||
|
|
|
||
|
|
# Set the new hostname
|
||
|
|
# hostname foo
|
||
|
|
|
||
|
|
# Print new hostname
|
||
|
|
# hostname
|
||
|
|
foo
|
||
|
|
```
|