Debian: Разберете и променете името на хоста
Можете да покажете и промените името на хоста под Debian. Показваме ви стъпка по стъпка как да го направите.
Показвайте имена на хостове под Debian
- Отворете терминала и въведете "име на хост" в командния ред.
- Командата "име на хост -f" извежда пълното име на хост FQDN (Напълно квалифицирано име на домейн).
Debian: променете името на хоста - така ще работи
Можете да промените името на хоста под Debian по време на работа или за постоянно.
- За да промените името на хоста по време на работа, въведете командата "име на хост" в терминала и новото име след него. Така че командата е „име на хост NEWER_NAME“.
- Ако искате да промените името на хоста за постоянно, можете да го редактирате с всеки редактор. Името на хоста е във файла "/ etc / hostname".
- За да можете да извършите промяната веднага, просто използвайте скрипта, който също се изпълнява при стартиране на системата. За целта въведете "/etc/init.d/hostname.sh" в терминала.
Знаехте ли? Ето защо Linux е по-широко разпространен от Windows
Ще обясним как да актуализираме Debian в следващия практически съвет.