LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-30-2003, 11:52 PM   #1
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
bash: command not found error


I am getting these errors

bash: updatedb: command not found

bash: locate: command not found

and a couple more. chown, chmod ls, rm etc seem to work fine. what could be the problem?
 
Old 06-30-2003, 11:54 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well typically them commands are found in /usr/bin so try specifying the full path...i don't know why you would have to do this, but give it a shot..
 
Old 07-01-2003, 03:22 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 425
Blog Entries: 1

Rep: Reputation: 36
strange problem.
It could be that /usr/bin is not in the path.
 
Old 07-01-2003, 04:17 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Is /usr on a seperate partition that "accidently" got umounted?

Look at:
mount
It should list what's mounted and where.

Cool
 
Old 07-01-2003, 12:23 PM   #5
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
Specifying complete path doesnt work either:
bash: /usr/bin/updatedb: No such file or directory
I couldnt find updatedb or locate in my /usr/bin directory. Where did those commands go?
This is output for mount command:

/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/hda6 on /home type ext3 (rw)
none on /mnt/cdrom type supermount (ro,dev=/dev/scd0,fs=auto,--,iocharset=iso8859-1,codepage=850,umask=0)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,codepage=850,umask=0)
 
Old 07-01-2003, 02:31 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
find / -name locate -print

if that doesn't show anything, then install locate.


Last edited by whansard; 07-01-2003 at 02:33 PM.
 
Old 07-01-2003, 03:28 PM   #7
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
output of find / -name locate -print

find: /etc/skel/tmp: Permission denied
find: /etc/default: Permission denied
find: /etc/cups/certs: Permission denied
find: /etc/cups/ssl: Permission denied
find: /etc/webmin: Permission denied
find: /mnt/floppy: Input/output error
find: . changed during execution of find
 
Old 07-01-2003, 03:29 PM   #8
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
How do I install locate?
 
Old 07-01-2003, 03:32 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
go install the "slocate" package..i don't know what distro you are using so i couldn't put a link, but if you go look it shouldn't be hard to find..updatedb is also included in that package (i think)..

Last edited by DrOzz; 07-01-2003 at 03:33 PM.
 
Old 07-01-2003, 04:37 PM   #10
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Original Poster
Rep: Reputation: 45
it worked when i installed slocate package. thanks
 
Old 07-01-2003, 04:47 PM   #11
shock_ez
Member
 
Registered: May 2003
Location: Japan
Posts: 67

Rep: Reputation: 15
I find that I have to piggyback on this thread. I want to set my path permanently for different profiles, so I figured it would be as simple as editing .bashrc or .profile. (.bash_profile doesn't exist) Unfortunately, neither of these files contains anything about the path. I don't want to have to set my path every time I login...I've been looking through the forums and haven't found much. What am I doing wrong?

shock_ez

Oh I am using SuSE 8.2, if that helps.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 02:04 AM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 08:41 PM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 11:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 04:11 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 06:11 AM


All times are GMT -5. The time now is 08:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration