Am Dienstag, 1. November 2011, 23:00:57 schrieb Alan McKinnon:
> On Tue, 01 Nov 2011 14:49:30 -0500
> 
> Dale <[email protected]> wrote:
> > Vishnupradeep wrote:
> > > On Tue, Nov 1, 2011 at 2:48 PM, Mick <[email protected]
> > > 
> > > <mailto:[email protected]>> wrote:
> > >     emerge -1aDv app-portage/gentoolkit
> > >     
> > >     revdep-rebuild -v --ask
> > > 
> > > i can't use emerge command as it is shown as command not found. can
> > > u tell the correct path of emerge.
> > 
> > /usr/bin/emerge
> > 
> > Little bit of learning here:
> > 
> > root@smoker / # which emerge
> > /usr/bin/emerge
> > root@smoker / #
> > 
> > Now you know where it is and how I found out where it is.  Trick is
> > remembering a command you rarely use.
> 
> That won't work. The $PATH is broken so the shell can't find ls and
> emerge.
> 
> Well, it won't find which either :-)
> 
> Solution: You run which which and tell the OP which directory contains
> which so he can run /path/towhich emerge to find out where emerge is.

Or just use "type -a", because that's a builtin.
~ $ type -a emerge
emerge is /usr/bin/emerge

Best,
Michael



Reply via email to