[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Re-directing Root's mail to admin (or a.n.other address)



> 3. On a RaQ4:
> cd /etc/mail/
> </snip>
>
> Thanks Jonathan, thats the bit I've been missing - guessed from other
> posts it was the alias file but couldn't find it.

locate alias

This command will locate (duh) any file on the server with "alias"
somewhere in its path. For instance,

/home/user/project/alias/gantt.chart.txt
/etc/mail/aliases
/alias.txt

will all be found. The locate command works extremely fast and puts
almost no load on your server, since it does not search the disk but
rather searches an index of files that's updated every night.

It's one downside is that its index is updated every night, so it won't
find stuff created two hours ago. For that you have to use "find".

--
Rodolfo J. Paiz
rpaiz@xxxxxxxxxxxxxx <mailto:rpaiz@xxxxxxxxxxxxxx>