How to change the hostname of a Debian (or Ubuntu) system.

[Category: Debian] Share: Bookmark and Share


First you need to know the current host name, to see this run this command

Then if you want to change the host name, you can do it in a file named hostname of this address /etc/hostname. Run this command:

vi /etc/hostname

And then

/etc/init.d/hostname.sh restart

Or run commands

sysctl kernel.hostname
sysctl kernel.hostname=NEW_HOSTNAME

See also

Cool-Linux.com

Recent posts

Cool-Linux.com

Randomized posts

Cool-Linux.com

change hostname, change host name, hostname, host name, change name, hostname file, hostname path, host name path, host path, path host, Host-Namen zu ändern, den Hostnamen, Host-Name, Name ändern, hostname-Datei, Hostname-Pfad, cambio de nombre de host, nombre de host, nombre de host, cambio de nombre, el archivo de nombre de host, ruta de host, менять имя хоста, имя хоста, имя хоста, изменить имя, имя файла, имя пути, mudança de nome do host, hostname, nome do host, mudar o nome, o arquivo host, o caminho hostname,endre vertsnavn, vertsnavn, vert navnet, endre navn, vertsnavn filen, vertsnavn banen, 更改主机名,主机名,主机名,更改名称,主机名的文件,主机名的路径,変更のホスト名、ホスト名、ホスト名、変更名、ホスト名のファイルを、ホスト名のパス、होस्ट नाम में परिवर्तन, होस्टनाम, मेजबान का नाम, परिवर्तन नाम, होस्ट नाम फ़ाइल, होस्टनाम पथ, changement de nom d'hôte, nom d'hôte, nom d'hôte, nom de changement, de nom d'hôte, le chemin de nom d'hôte, تغییر نام میزبان ، نام میزبان ، نام میزبان ، نام تغییر ، فایل نام میزبان ، نام میزبان راه ، تغيير اسم المضيف ، اسم المضيف ، اسم المضيف ، وتغيير الاسم ، ملف المضيف ، مسار المضيف, Debian, linux, LINUX, unix, Unix, UNIX

Categories



Tell a friend!


Your e-mail:


Your friend's e-mail:




Add CoolLinux to your favorites


apache log files, find log files, apache log files, change hostname, change host name, hostname, host name, change name, hostname file, hostname path, host name path, host path, path host, change hostname, change host name, hostname, host name, change name, hostname file, hostname path, host name path, host path, path host, install lighttpd, lighttpd, web server, lighttpd web server, lighttpd installation, lighttpd debian install, lighttpd debian installation, FreeBSD, SUSE Linux distributions, Red Hat Enterprise, Kubuntu, Fedora Core, Fedora, Edubuntu, ubuntu, Debian, CentOS, game, linux game, unix game, sauerbraten, cube, game, linux game, unix game, OpenArena, game, GPL, linux game, unix game, text login, new mail, warning, message, system message, notice, terminal, text terminal, install, remove, uninstall, Apache, apache, delete, CentOS, Red Hat, Fedora, install apache, remove apache, uninstall apache,, remove, uninstall, Apache, apache, apache debian, apache ubuntu, debian, ubuntu, remove apache, uninstall apache, delete, start, stop, restart, start apache, stop apache, restart apache, Apache, apache, list contents, directory, list directory, PHP, php, contents, content, php list, display date, display time, visitor, PHP, php, date, time, php date, php time, display php, display IP, IP, ip, ip address, IP address, visitor, PHP, php, ip php, word processors, text editor, editor, install, nano, , change, changing, timezone, time zone, reboot, , Learn Persian online!Englisch lernen online kostenlos