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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-30-2003, 10:52 PM
|
#1
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Rep:
|
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?
|
|
|
06-30-2003, 10:54 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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..
|
|
|
07-01-2003, 02:22 AM
|
#3
|
Member
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Rep:
|
strange problem.
It could be that /usr/bin is not in the path.
|
|
|
07-01-2003, 03:17 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Is /usr on a seperate partition that "accidently" got umounted?
Look at:
mount
It should list what's mounted and where.
Cool
|
|
|
07-01-2003, 11:23 AM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Original Poster
Rep:
|
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)
|
|
|
07-01-2003, 01:31 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
find / -name locate -print
if that doesn't show anything, then install locate.
Last edited by whansard; 07-01-2003 at 01:33 PM.
|
|
|
07-01-2003, 02:28 PM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Original Poster
Rep:
|
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
|
|
|
07-01-2003, 02:29 PM
|
#8
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Original Poster
Rep:
|
How do I install locate?
|
|
|
07-01-2003, 02:32 PM
|
#9
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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.
|
|
|
07-01-2003, 03:37 PM
|
#10
|
Senior Member
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044
Original Poster
Rep:
|
it worked when i installed slocate package. thanks
|
|
|
07-01-2003, 03:47 PM
|
#11
|
Member
Registered: May 2003
Location: Japan
Posts: 67
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|