Ubuntu – What does the name after ‘@’ at terminal prompt mean

command lineps1

I noticed that when in terminal the prompt is generally in the format username@users: or I have even seen username@(none):. I get that the first part is the logged in person's user name, but what is the part after the @ symbol?

Best Answer

It's the hostname, i.e. the name that you gave your computer.

Showing this as part of the prompt is useful so you can easily tell which host a given shell is running on if you're logged into multiple computers (via ssh or telnet for example).