How to change hostname on Linux Mint? Posted on Mar 24, 2018 by Eric Ma In QAHow to change the hostname on Linux Mint? The hostname (e.g. mypc or mypc.example.com) can be changed by putting the hostname in one line in the file /etc/hostname on Linux Mint.Read more:How to Change Hostname of Fedora Linux How to get hostname in Python on Linux? Getting Hostname in C Programs in Linux How to get the hostname of the node in Python? How to get the hostname of the node in C++? How to set Zimbra web service’s hostname and port? Getting Hostname in Bash in Linux How to find the hostname of an IP using /etc/hosts if it has the mapping on Linux?