Looking up host name on a remote computer

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
I'm curious to know if there is a command out there which allows you to check the hostname of a remote linux computer. For example, on a local machine, all I need to type in is "hostname" to find out the hostname. However, can't quite figure out how to check another computer's hostname.

This is also without editting /etc/hosts