How and where to find i.e. HOSTS !?
On Dec 6, 2007 2:44 PM, Miano, Steven M. <Steven.Miano@mybrighthouse.com> wrote:
> > Gerald Dachs wrote:
> >
> > > Quoting SYNass IT Ubuntu / Linux <i-ubux@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@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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|