LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-02-2008, 12:23 PM   #1
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
Open Suse 11: bash commands not found


Hi, I just started with Open Suse 11.
Look & Feel are alright, but there is one thing that I do not understand.
When working in a root terminal I enter updatedb: command not found
When I enter locate ...: command not found
Is there a reason that these commands are not included in the Bash?
And are there more commands missing?
 
Old 08-02-2008, 12:38 PM   #2
dr.acul
LQ Newbie
 
Registered: Jun 2008
Location: Germany
Distribution: Gentoo/LFS
Posts: 27

Rep: Reputation: 15
updatedb and locate are independent programs, they are not related to the bash
The $PATH variable makes the bash known about all the nice software on your system.

I't seems that your $PATH variable is not set corret in the root terminal, type
Code:
$ echo $PATH
make sure that updatedb and locate are installed, and that the bash can find them in the $PATH variable.

*dg*
 
Old 08-02-2008, 12:39 PM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Whereis is standard in opensuse ok Locate give some more information
Locate to my knowledge you have to build the data base first
 
Old 08-02-2008, 01:03 PM   #4
dr.acul
LQ Newbie
 
Registered: Jun 2008
Location: Germany
Distribution: Gentoo/LFS
Posts: 27

Rep: Reputation: 15
The command whereis is to locate the binary of a specific command.
locate and of course updatedb are to index and search all files on a system.
That's a great difference.

*dg*
 
Old 08-02-2008, 01:15 PM   #5
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
Code:
# echo $PATH
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
Here is what I get, seems ok to me. After install I should first run makewhatis, but again: command not found
 
Old 08-02-2008, 01:24 PM   #6
loginattemp#2
LQ Newbie
 
Registered: Aug 2008
Location: Comox Valley
Distribution: openSuSE-KDE4.1
Posts: 2

Rep: Reputation: 0
The rpm name in suse is "findutils-locate".
see if you got it = "rpm -q findutils-locate"
get it = "zypper in findutils-locate"
 
1 members found this post helpful.
Old 08-02-2008, 01:42 PM   #7
dr.acul
LQ Newbie
 
Registered: Jun 2008
Location: Germany
Distribution: Gentoo/LFS
Posts: 27

Rep: Reputation: 15
Yes, the $PATH seems to be ok, but it seem curious too.
Have you tried to locate something in another terminal?

And are sure you have installed the slocate/locate package on your system?
Have you tried some other commands like [I]find[I], commands that are not built-in into the bash.

*dg*
 
Old 08-02-2008, 01:47 PM   #8
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
loginattemp#2, thanks for the information. Got my updatedb working.
I was puzzled because I thought that these would be installed during installing Suse.
 
Old 08-02-2008, 02:39 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Odd it is, but 'slocate' has not been installed
by default in the releases, I can remember.
(Suse 8.0 up)

Regards
 
  


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
[SOLVED] new installation SUSE 11, runlevel 1 on tiny window, bash commands unrecognised Nityanandi SUSE / openSUSE 3 07-26-2008 12:42 PM
suse 10.3: 'bash: lsusb: command not found...' sjclemmy Linux - Newbie 2 11-26-2007 06:08 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
bash: make: command not found - on suse 9.1 sshum Linux - Software 7 03-30-2006 01:06 PM
BADLY NEEDED! comprehensive list of (suse) bash commands witecat Linux - Newbie 6 01-07-2006 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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