The computer name is displayed as "unknown-" at the command prompt. How do I change this?
1 Answer
This can be done through
sudo hostname new_name
If new_name
contains single quotes, then it should be surrounded with double quotes.
-
The hostname is usually set dynamically, so I don't consider this to be the ideal option.– slhckMar 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– slhckMar 24, 2013 at 15:55