hostname

John Summerfied debian at herakles.homelinux.org
Wed Mar 1 21:25:24 UTC 2006


azeem ahmad wrote:
> hi list
> i set the hostname using the command
> hostname
> but when i restart i gets back to the old hostname
> how can i change it permanently
> Regards
> Azeem

This is more general than other answers I've seen, it's how I find stuff.
sudo find /etc -type f -print0 | sudo xargs -0 grep -H $HOSTNAME

You need to be root because some of the directories are forbidden to 
mere mortals.





-- 

Cheers
John

-- spambait
1aaaaaaa at computerdatasafe.com.au  Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list




More information about the fedora-list mailing list