Results for: hostname

How can you check the hostname in Linux?

The hostname (the name of the computer) can be found in most Linux distributions by issuing the hostname command without arguments. Alternatively, you can view the contents of /etc/hosts. The hostname will be listed next to the IP address 127.0.1.1. Full Answer