How and where to find i.e. HOSTS !?
Matt Morgan
minxmertzmomo at gmail.com
Thu Dec 6 21:49:47 UTC 2007
On Dec 6, 2007 2:44 PM, Miano, Steven M. <Steven.Miano at mybrighthouse.com> wrote:
> > Gerald Dachs wrote:
> >
> > > Quoting SYNass IT Ubuntu / Linux <i-ubux at synass.net>:
> > >
> > >> How can I search i.e HOSTS like I did till now:
> > >> dir hosts /s
> > >
> > > find / -name hosts
> >
> > if updatedb is running regularly (I don't know if it's standard in Ubuntu,
> > these days),
> >
> > # locate hosts
> >
> > is much faster.
> > --
> > derek
>
>
>
> user at host: Whereis hosts
>
> Would also be a bit quicker.
And for newbies, I strongly recommend
man find
man locate
man whereis
so you know the difference. Since man pages can be pretty hard to
figure out before you get used to them (but try), I'll also explain
find -- does a million things and is great to know well
locate -- just finds files, quickly, as long as updatedb is running regularly
whereis -- finds only files in your PATH, so it's good for searching
for executables.
--Matt
More information about the ubuntu-users
mailing list