Leser: 1
![]() |
![]() |
6 Einträge, 1 Seite |
1
2
3
4
5
6
7
SYNOPSIS
hostname [-s] [name-of-host]
...
The super-user
can set the hostname by supplying an argument; this is usually done in
the network initialization script /etc/rc.d/hostname, normally run at
boot time.
QuoteAttempts several methods of getting the system hostname and then caches the result. It tries the first available of the C library's gethostname(), `$Config{aphostname}`, uname(2), syscall(SYS_gethostname), `hostname`, `uname -n`, and the file /com/host. If all that fails it croaks.
![]() |
![]() |
6 Einträge, 1 Seite |