Debian: Descubra e mude o nome do host
Você pode exibir e alterar o nome do host no Debian. Mostramos passo a passo como fazê-lo.
Mostrar nomes de host no Debian
- Abra o terminal e digite "hostname" na linha de comando.
- O comando "hostname -f" gera o nome completo do host sam FQDN (nome de domínio totalmente qualificado).
Debian: altere o nome do host - para que funcione
Você pode alterar o nome do host no Debian durante a operação ou permanentemente.
- Para alterar o nome do host durante a operação, digite o comando "hostname" no terminal e o novo nome depois dele. Portanto, o comando é "hostname NEWER_NAME".
- Se você deseja alterar o nome do host permanentemente, é possível editá-lo com qualquer editor. O nome do host está no arquivo "/ etc / hostname".
- Para poder fazer a alteração imediatamente, basta usar o script que também é executado quando o sistema é iniciado. Para fazer isso, digite "/etc/init.d/hostname.sh" no terminal.
Você sabia? É por isso que o Linux é mais difundido que o Windows
Vamos explicar como atualizar o Debian na próxima dica prática.