LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10: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, 10:54 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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, 02:22 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

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

Rep: Reputation: 69
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, 11:23 AM   #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, 01:31 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

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

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


Last edited by whansard; 07-01-2003 at 01:33 PM.
 
Old 07-01-2003, 02: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, 02: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, 02:32 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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 02:33 PM.
 
Old 07-01-2003, 03: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, 03: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



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 01:04 AM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 07:41 PM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 10:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:18 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