linux command error message bash: /usr/bin/find: No such file or directory
Hi,
I have readhat 7.1 machine, it worked fine. Suddenly it started giving error message for all the command. I was not able execute ls ,du, find commands. It giving the error message. bash-2.04# find bash: /usr/bin/find: No such file or directory bash-2.04# du bash: /usr/bin/du: No such file or directory If I copy the command file from some other machine, its working. Any idea, why I am getting this message. Thanks Sundaram |
what does your PATH look like? (echo $PATH).
also, have you checked to see if any of your drives are full? (df) |
I think i have enough space. see the following output:
bash-2.04# echo $PATH .:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr /X11R6/bin bash-2.04# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda8 251M 126M 112M 53% / /dev/hda1 53M 3.5M 46M 7% /boot /dev/hda6 1.6G 1.4G 161M 90% /home /dev/hda5 1.6G 995M 515M 66% /usr /dev/hda7 251M 37M 200M 16% /var bash-2.04# If I use full path name also same error message [build@linux2 build]$ /usr/bin/find . -print bash: /usr/bin/find: No such file or directory [build@linux2 build]$ |
Are the files actually missing?
|
command is there, see the ls output
[build@linux2 build]$ ls -l /usr/bin/find -rwxr-xr-x 1 root root 57452 Feb 8 2001 /usr/bin/find* |
have you done a "fsck" on your drives lately?
is it EVERY program in /usr/bin? what happens when you type: file /usr/bin/find have you tried reinstalling the "findutils" package? |
I didn't run fsck command.
re-installed findutils pkg. now find command is working. But du command is not working. see the following output [build@linux2 build]$ ls -l /usr/bin/du -rwxr-xr-x 1 root root 22460 Mar 14 2001 /usr/bin/du* [build@linux2 build]$ /usr/bin/du bash: /usr/bin/du: No such file or directory [build@linux2 build]$ du bash: /usr/bin/du: No such file or directory [build@linux2 build]$ |
is there something stopping you reinstalling fileutils as well then...?
|
Hi,
I have re-installed fileutil, now du command working. But any idea, Why I am getting this kind of problem. Thanks Sundaram |
All times are GMT -5. The time now is 06:11 PM. |