Debian: scopri e cambia il nome host
È possibile visualizzare e modificare il nome host in Debian. Ti mostriamo passo dopo passo come farlo.
Mostra i nomi host sotto Debian
- Apri il terminale e inserisci "hostname" nella riga di comando.
- Il comando "hostname -f" genera il nome host completo sam FQDN (nome di dominio completo).
Debian: cambia il nome host - quindi funzionerà
È possibile modificare il nome host in Debian durante il funzionamento o in modo permanente.
- Per modificare il nome host durante il funzionamento, immettere il comando "nomehost" nel terminale e il nuovo nome dopo di esso. Quindi il comando è "nomehost NEWER_NAME".
- Se si desidera modificare il nome host in modo permanente, è possibile modificarlo con qualsiasi editor. Il nome host si trova nel file "/ etc / hostname".
- Per poter apportare immediatamente la modifica, è sufficiente utilizzare lo script che viene eseguito anche all'avvio del sistema. Per fare ciò, inserisci "/etc/init.d/hostname.sh" nel terminale.
Lo sapevi? Ecco perché Linux è più diffuso di Windows
Spiegheremo come aggiornare Debian nel prossimo consiglio pratico.