On 2 January 2011 08:30, Madhurya Kakati <mkakati2805@xxxxxxxxx> wrote: > On Sun, Jan 2, 2011 at 1:55 PM, Martin Panter > <vadmium+al@xxxxxxxxx<vadmium%2Bal@xxxxxxxxx> >> wrote: > >> On 2 January 2011 08:24, Madhurya Kakati <mkakati2805@xxxxxxxxx> wrote: >> > now i get this error >> > $ xz >> > bash: /usr/local/bin/xz: No such file or directory >> >> Try doing "hash -r" to make Bash forget the old location, or open a new >> shell. >> > > output of echo $PATH after running hash -r > /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/share/java/apache-ant/bin:/opt/kde/bin:/usr/lib/perl5/vendor_perl/bin:/usr/bin/perlbin/vendor:/usr/lib/perl5/core_perl/bin:/opt/qt/bin But after doing "hash -r" I'd expect your "xz" command to work. Have a read of "help hash", but basically Bash is remembering where it found xz last time, and isn't searching again after you deleted it.