Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hostname

v(uutils coreutils) 0.8.0
hostname [OPCIÓN]... [NOMBRE_HOST]

Mostrar o establecer el nombre del host del sistema.

Options

--domain, -d

Mostrar el nombre del dominio DNS si es posible

--ip-address, -i

Mostrar la(s) dirección(es) de red del host

--fqdn, -f

Mostrar el FQDN (Nombre de Dominio Completamente Calificado) (predeterminado)

--short, -s

Mostrar el nombre de host corto (la porción antes del primer punto) si es posible

Examples

Muestra el nombre actual del host:

hostname

Muestra la dirección de red correspondiente al nombre del host:

hostname {{[-i|--ip-address]}}

Muestra el FQDN (nombre de dominio completamente calificado):

hostname {{[-f|--fqdn]}}

Establece el nombre del host:

hostname {{nuevo_nombre}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.