Run hostname.
hostname
Compare hostname, hosts-file, and resolver configuration evidence.
Networkinghostnamecatgrep
Click any instruction for the command details, the why, and the common mistake to avoid.
Run hostname.
hostname
Run cat /etc/hosts.
cat /etc/hosts
Run grep nameserver /etc/resolv.conf.
grep nameserver /etc/resolv.conf
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Build repeatable confidence with understanding local name-resolution inputs.
Start with hostname, inspect the result, then continue in order.
Understanding local name-resolution inputs helps operators explain what they know before they change anything.
cat <file>
Print text file contents.
grep [-i] <text> <file>
Find literal text inside a file.