1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:37:35 +00:00

Base: Add more manpages for command-line utilities

This commit is contained in:
Maciej Zygmanowski 2021-05-31 17:16:21 +02:00 committed by Gunnar Beutner
parent 5d8585df97
commit 57340dda36
25 changed files with 749 additions and 0 deletions

View file

@ -0,0 +1,28 @@
## 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
```