How to find Hostname of Linux Server December 2, 2013 SSH Tutorials Use following command to know the hostname of your server. hostname You should run above command in SSH as root user.