LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-01-2002, 09:24 AM   #1
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5

Rep: Reputation: 0
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
 
Old 04-01-2002, 12:55 PM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
what does your PATH look like? (echo $PATH).

also, have you checked to see if any of your drives are full? (df)
 
Old 04-01-2002, 01:18 PM   #3
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
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]$
 
Old 04-01-2002, 02:09 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Are the files actually missing?
 
Old 04-01-2002, 02:50 PM   #5
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
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*
 
Old 04-01-2002, 03:32 PM   #6
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
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?
 
Old 04-01-2002, 04:51 PM   #7
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
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]$
 
Old 04-01-2002, 04:59 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
is there something stopping you reinstalling fileutils as well then...?
 
Old 04-02-2002, 07:18 AM   #9
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

I have re-installed fileutil, now du command working.

But any idea, Why I am getting this kind of problem.


Thanks
Sundaram
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: /usr/bin/localedef: No such file or directory satimis Linux From Scratch 2 07-28-2005 01:53 AM
KDEinit error message: /usr/bin/autorun kpsornes SUSE / openSUSE 0 05-13-2005 02:54 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM
/usr/bin/find :No such file or Directory errors while trying to compile kernel. Zero-0-Effect Linux From Scratch 2 05-29-2004 03:46 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration