1

The computer name is displayed as "unknown-" at the command prompt. How do I change this?

0

1 Answer 1

1

This can be done through

sudo hostname new_name

If new_name contains single quotes, then it should be surrounded with double quotes.

3
  • The hostname is usually set dynamically, so I don't consider this to be the ideal option.
    – slhck
    Mar 24, 2013 at 15:14
  • Is there any way other to revert it if it gets set to 'unknown-***' though? Mar 24, 2013 at 15:53
  • See the answers to the other question here: superuser.com/a/414903/48078
    – slhck
    Mar 24, 2013 at 15:55

Not the answer you're looking for? Browse other questions tagged .