1

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

slhck
  • 223,558
  • 70
  • 607
  • 592

1 Answers1

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