100 Useful Command-Line Utilities

by Oliver; 2014

73. hostname

hostname prints the system's host name, which is like the name of the computer. If you've ssh-ed into multiple computers in a bunch of different terminal sessions, this command will remind you where you are:
$ hostname

<PREV   NEXT>