LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 04-01-2002, 10:24 AM   #1
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5
Thanked: 0
linux command error message bash: /usr/bin/find: No such file or directory


[Log in to get rid of this advertisement]
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
sundaram123 is offline     Reply With Quote
Old 04-01-2002, 01:55 PM   #2
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Thanked: 0
what does your PATH look like? (echo $PATH).

also, have you checked to see if any of your drives are full? (df)
Sixpax is offline     Reply With Quote
Old 04-01-2002, 02:18 PM   #3
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5
Thanked: 0

Original Poster
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]$
sundaram123 is offline     Reply With Quote
Old 04-01-2002, 03:09 PM   #4
DavidPhillips
LQ Addict
 
Registered: Jun 2001
Location: South Alabama
Distribution: RedHat / SuSE
Posts: 7,150
Thanked: 0
Are the files actually missing?
DavidPhillips is offline     Reply With Quote
Old 04-01-2002, 03:50 PM   #5
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5
Thanked: 0

Original Poster
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*
sundaram123 is offline     Reply With Quote
Old 04-01-2002, 04:32 PM   #6
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386
Thanked: 0
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?
Sixpax is offline     Reply With Quote
Old 04-01-2002, 05:51 PM   #7
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5
Thanked: 0

Original Poster
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]$
sundaram123 is offline     Reply With Quote
Old 04-01-2002, 05:59 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,329
Thanked: 182
is there something stopping you reinstalling fileutils as well then...?
acid_kewpie is offline     Reply With Quote
Old 04-02-2002, 08:18 AM   #9
sundaram123
LQ Newbie
 
Registered: Apr 2002
Posts: 5
Thanked: 0

Original Poster
Hi,

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

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


Thanks
Sundaram
sundaram123 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
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 02:53 AM
KDEinit error message: /usr/bin/autorun kpsornes Suse/Novell 0 05-13-2005 03:54 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 07: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 04:46 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration