Debian: Znajdź i zmień nazwę hosta
Możesz wyświetlić i zmienić nazwę hosta w Debianie. Pokażemy Ci krok po kroku, jak to zrobić.
Pokaż nazwy hostów w Debianie
- Otwórz terminal i wpisz „nazwa hosta” w wierszu polecenia.
- Polecenie „nazwa hosta -f” wyświetla pełną nazwę hosta sam FQDN (w pełni kwalifikowana nazwa domeny).
Debian: zmień nazwę hosta - aby działało
Możesz zmienić nazwę hosta w Debianie podczas pracy lub na stałe.
- Aby zmienić nazwę hosta podczas operacji, wpisz polecenie „nazwa hosta” w terminalu, a po nim nową nazwę. Zatem polecenie brzmi „nazwa hosta NEWER_NAME”.
- Jeśli chcesz trwale zmienić nazwę hosta, możesz ją edytować w dowolnym edytorze. Nazwa hosta znajduje się w pliku „/ etc / hostname”.
- Aby móc dokonać zmiany natychmiast, po prostu użyj skryptu, który jest również uruchamiany podczas uruchamiania systemu. Aby to zrobić, wpisz „/etc/init.d/hostname.sh” w terminalu.
Czy wiesz Właśnie dlatego Linux jest bardziej rozpowszechniony niż Windows
W następnym praktycznym poradniku wyjaśnimy, jak zaktualizować Debiana.