LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   linux command error message bash: /usr/bin/find: No such file or directory (https://www.linuxquestions.org/questions/linux-general-1/linux-command-error-message-bash-usr-bin-find-no-such-file-or-directory-17463/)

sundaram123 04-01-2002 09:24 AM

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

Sixpax 04-01-2002 12:55 PM

what does your PATH look like? (echo $PATH).

also, have you checked to see if any of your drives are full? (df)

sundaram123 04-01-2002 01:18 PM

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]$

DavidPhillips 04-01-2002 02:09 PM

Are the files actually missing?

sundaram123 04-01-2002 02:50 PM

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*

Sixpax 04-01-2002 03:32 PM

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?

sundaram123 04-01-2002 04:51 PM

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]$

acid_kewpie 04-01-2002 04:59 PM

is there something stopping you reinstalling fileutils as well then...?

sundaram123 04-02-2002 07:18 AM

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.