ladybird/Base/usr/share/man/man8/hostname.md
2021-07-03 09:08:25 +02:00

495 B

Name

hostname - print or set hostname

Synopsis

$ 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

# Print current hostname
$ hostname
courage

# Set the new hostname
# hostname foo

# Print new hostname
# hostname
foo