How 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.Related posts:How to Change Hostname of Fedora Linux Wireless driver in Linux Mint for HP Mini 110 Netbook How to configure iptables on Linux Mint 17.1? 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?