4,461
edits
Tag: visualeditor |
mNo edit summary |
||
Line 4: | Line 4: | ||
# To '''permanently''' change the computer name<br>Edit <code>/etc/hostname</code> and <code>/etc/hosts</code> | # To '''permanently''' change the computer name<br>Edit <code>/etc/hostname</code> and <code>/etc/hosts</code> | ||
# Restart hostname service < | # Restart hostname service <syntaxhighlight lang="bash"> | ||
$ systemctl restart systemd-logind.service | $ systemctl restart systemd-logind.service | ||
</ | </syntaxhighlight> | ||
# Use ''hostnamectl'' with ''set-hostname'' flag. < | # Use ''hostnamectl'' with ''set-hostname'' flag. <syntaxhighlight lang="bash"> | ||
$ hostnamectl set-hostname NEW_NAME_HERE | $ hostnamectl set-hostname NEW_NAME_HERE | ||
</ | </syntaxhighlight> | ||