The computer name is displayed as "unknown-" at the command prompt. How do I change this?
Asked
Active
Viewed 274 times
1 Answers
1
This can be done through
sudo hostname new_name
If new_name contains single quotes, then it should be surrounded with double quotes.
Sathyajith Bhat
- 61,504
- 38
- 179
- 264
Rich Ashworth
- 197
- 9
-
The hostname is usually set dynamically, so I don't consider this to be the ideal option. – slhck Mar 24 '13 at 15:14
-
Is there any way other to revert it if it gets set to 'unknown-***' though? – Rich Ashworth Mar 24 '13 at 15:53
-
See the answers to the other question here: http://superuser.com/a/414903/48078 – slhck Mar 24 '13 at 15:55