Re: Changing the name of my computer
Pigeon verraste ons met de boodschap:
<snip>
> I don't know if there
> exists a list somewhere of all the config files that your machine name might
> find its way into. It might be useful to do something like:
>
> for x in `find /etc -name '*'`; do grep achilles $x > /dev/null 2>&1 && ech=
> o $x; done
>
> just to make sure you've caught everything.
just for the record, the command
$ grep -rsl achilles /etc
will do the same, but a huge lot more efficient (being just 1 process
instead of 1 for every file in /etc)
-r is of course recursive
-s surpresses error messages (lilo.conf for example is not be readable by
normal users)
-l outputs the filename instead of the matched lines
man grep for more neat stuff ;-)
greetz,
--
Joris
Reply to: