thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

IT Support & Hardware · Foundational

hostname Command

A command that displays the computer's host name on Windows, macOS, and Linux.

Definition

hostname returns the name used on the network, which is useful for identifying a machine in a remote session. Windows also shows the name in Settings > System > About, and the environment variable %COMPUTERNAME%.

Example

Run hostname to confirm you are connected to WS-0412 before making changes.

Exam tip

Simple but common in identification steps during remote support.

Related terms