2025-12-16 10:20:31 -07:00
|
|
|
# hostname
|
|
|
|
|
|
|
|
|
|
> Muestra o establece el nombre del host del sistema.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Más información: <https://www.gnu.org/software/inetutils/manual/inetutils.html#hostname-invocation>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- 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}}`
|