Debian: узнайте и измените имя хоста
Видео по теме: (September 2024).
Вы можете отобразить и изменить имя хоста в Debian. Мы покажем вам шаг за шагом, как это сделать.
Показать имена хостов под Debian
- Откройте терминал и введите «имя хоста» в командной строке.
- Команда "имя-хоста -f" выводит полное имя хоста с полным доменным именем (полное доменное имя).
Debian: измените имя хоста - так будет работать
Вы можете изменить имя хоста в Debian во время работы или навсегда.
- Чтобы изменить имя хоста во время работы, введите команду «имя хоста» в терминале и новое имя после него. Таким образом, команда называется "имя хоста NEWER_NAME".
- Если вы хотите изменить имя хоста навсегда, вы можете отредактировать его в любом редакторе. Имя хоста находится в файле "/ etc / hostname".
- Чтобы внести изменения немедленно, просто используйте скрипт, который также выполняется при запуске системы. Для этого введите «/etc/init.d/hostname.sh» в терминале.
Знаете ли вы? Вот почему Linux более распространен, чем Windows
Мы объясним, как обновить Debian в следующем практическом совете.