Debian: trouver et changer le nom d'hôte
Vous pouvez afficher et modifier le nom d'hôte sous Debian. Nous vous montrons étape par étape comment le faire.
Afficher les noms d'hôtes sous Debian
- Ouvrez le terminal et entrez "hostname" sur la ligne de commande.
- La commande "hostname -f" génère le nom d'hôte complet sam FQDN (nom de domaine complet).
Debian: changer le nom d'hôte - donc ça marchera
Vous pouvez changer le nom d'hôte sous Debian pendant le fonctionnement ou de façon permanente.
- Pour changer le nom d'hôte pendant le fonctionnement, entrez la commande "nom d'hôte" dans le terminal et le nouveau nom après. La commande est donc "hostname NEWER_NAME".
- Si vous souhaitez modifier définitivement le nom d'hôte, vous pouvez le modifier avec n'importe quel éditeur. Le nom d'hôte se trouve dans le fichier "/ etc / hostname".
- Pour pouvoir effectuer la modification immédiatement, utilisez simplement le script qui est également exécuté au démarrage du système. Pour ce faire, entrez "/etc/init.d/hostname.sh" dans le terminal.
Le saviez-vous? C'est pourquoi Linux est plus répandu que Windows
Nous expliquerons comment mettre à jour Debian dans la prochaine astuce pratique.