How to change your hostname on Debian Jessie without rebooting ?

Hostnamectl utility is pretty straightforward to change your hostname on Debian Jessie without rebooting.

hostnamectl status to display the current hostname
hostnamectl set-hostname your_new_hostname to set a new hostname

Changing_hostname_with_hostnamectl

The change will take effect once you log out and log in again.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s