Username and Hostname

How to get your Username

Windows

The username in Windows is the account name used when you login. A list of account names can be found by selecting Start Menu->Control Panel->User Accounts.

Mac

Username can be determined by typing "whoami" at the command line, or by opening the System Preferences->Accounts dialog and finding the Short Name field for the account you want to use.

Unix/Linux

Username can be determined by typing "whoami" at the command line.

How to get your Hostname

Windows

Instructions to find your computer name can be determined as described here.

Mac

Hostname can be determined by typing "hostname" at the command line, or by opening the System Preferences->Sharing dialog. Note that the full hostname in this dialog should be suffixed with ".local", e.g., if your computer is named "machine123," the full hostname is "machine123.local".

Unix/Linux

Username can be determined by typing "hostname" at the command line.