I'm new to Linux and want to understand the difference between a username and a hostname. What does each one identify, and can a hostname be changed or shared by multiple computers?
2 Answers
A username identifies your account on a system—the person or account logging in. A hostname identifies the computer itself. For example, you might log in as `alex` on a computer named `laptop01`.
Think of the hostname as the name of the computer that hosts services and applications. It can usually be changed, and multiple computers can technically have the same hostname, but unique names are strongly recommended on the same network to avoid confusion and conflicts.

That makes sense. So the username is tied to the account, while the hostname is tied to the machine.