[Herefordshire] Missing hosts file

Mark Broadbent markb at wetlettuce.com
Mon Nov 1 16:25:14 GMT 2004


Hi Noel,

Noel McG. said:
> Hello everyone,
>
> Whilst trying to 'fine tune' things, using Konsole, I was told to
> delete the hosts file.  I was intending to re-save it with the details
> of my Linux and Windows boxes.
> However I now find that having entered the necessary details, when I
> try to save, I am told the file does not exist and so cannot be written
> to.
>
> How do I create a new file please?

# touch /etc/hosts

Will create a blank file

# echo "127.0.0.1 localhost localhost.localdomain" >/etc/hosts

Will create a minimal one

(both done as root of course!)

Thanks
Mark

-- 
Mark Broadbent <markb at wetlettuce.com>
Web: http://www.wetlettuce.com






More information about the Herefordshire mailing list