Quote:
Originally Posted by GazL
Most likely you don't have /sbin in your $PATH and it has nothing to do with the power failure.
|
Good observation GazL... I solved the problem.. and yes it has nothing to do with power-failure.
and as stated by @brobr
Quote:
What happens if you try bash? (you edited the .zshrc file, maybe that needs removing/repairing
|
the problem was with .zshrc file..
and i found this thread was helpful
http://www.linuxquestions.org/questions/linux-newbie-8/as-root-not-seeing-sbin-and-usr-sbin-in-path-174427/
yeah.. Here is what i did..
1. checked the /etc/profile for any corruption or change.. and found that root should use /usr/local/sbin .
2. which was missing in the .zshrc file with the export PATH="..."
3. so i added /usr/local/sbin to that line and sourced the .zshrc file.
4. But nothing happened and then i added /sbin to the same line and voila problem solved as when i issued pkgtool command it popped up!!
Thanks for your quick reply!
Thread solved!