LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LS and TAR Commands missing Mandrake Linux 10 with kernel 2.6.3-7 (https://www.linuxquestions.org/questions/linux-software-2/ls-and-tar-commands-missing-mandrake-linux-10-with-kernel-2-6-3-7-a-194179/)

youneedaclue 06-16-2004 09:16 AM

LS and TAR Commands missing Mandrake Linux 10 with kernel 2.6.3-7
 
Until just a couple of days ago ls and tar were working fine. Just today though I am unable to untar anything, since it says "utility tar not in your PATH". Can anyone please tell me the location of tar? I did a search and turned up nothing. I also tried to install tar again from GNU.
Ls works if I am root, but not as me. I thought theres something wrong with my .bashrc, so I copied root's .bashrc onto my folder. Still nothing. I feel im missing something obvious..

andrewlkho 06-16-2004 12:24 PM

Check your PATH ("env | grep PATH") to find out where you're looking for binaries, and check that the location ("/bin") of the ls command ("whereis ls") is there.

youneedaclue 06-16-2004 12:28 PM

Now not even root can use ls...I have no idea whats goin on...
Thanks..I tried it but guess what...grep doesnt work.
I can see all the binaries are there in /bin but i cant access specific ones,i can access gunzip but not tar

andrewlkho 06-16-2004 03:13 PM

Okay, try the above commands, except specify actual path to commands, so something like:
$ /usr/bin/whereis ls
$ env | /bin/grep PATH
and so on.

youneedaclue 06-16-2004 05:11 PM

great! thanks it works!
its alive!


All times are GMT -5. The time now is 04:42 PM.