Changing host name

Toshi Esumi ubuntu at toshiesumi.com
Sat Jun 1 21:02:44 UTC 2013


On Sat, 2013-06-01 at 13:55 -0700, Bob wrote:
>   What command do I use to change the "host name" for my computer?
> 
> -- 
> Robert Blair
> 
Welcome!

You just need to edit /etc/hostname file whatever your text editor is.
Just make sure you have enough privilege to edit it.
Mines is below:
 toshi at ubuntu13-04:/etc$ ll hostname
-rw-r--r-- 1 root root 12 May 21 20:09 hostname
toshi at ubuntu13-04:/etc$ cat hostname
ubuntu13-04

Toshi





More information about the ubuntu-users mailing list