Solved

difference between /usr/sbin/makewhatis VS /usr/bin/makewhatis

Posted on 2006-07-23
4
1,441 Views
Last Modified: 2008-02-26
what is the difference between /usr/sbin/makewhatis VS /usr/bin/makewhatis in Linux/Unix systems. why do we need to have same files in two different folder?? I have seen the script in both files  and logic in both of them seem to differ??
0
Comment
Question by:aman_greval
4 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
Just a guess, but does one create the requisite data index for system based commands such as /sbin /usr/sbin etc. while the other builds the index for user accessible commands i.e. /bin /usr/bin /usr/local/bin?

run diff /usr/sbin/makewhatis /usr/bin/makewhatis | more

Here you will see the difference between them which might be shed some light on what the difference is and the purpose for the difference.
0
 
LVL 87

Expert Comment

by:rindi
Comment Utility
You probably installed that software from 2 different sources, maybe you got one through the package manager of your distro, and the other was installed some other way. Normally the package manager of your distro installs the software in a consistant way standard to the distro you are using, while when you install manually, it doesn't necessarily install to the same areas, but normally you can select where you want to install things to.
0
 

Author Comment

by:aman_greval
Comment Utility
I have not installed any other software ever since i installed RHEL 9 on PIII. RHEL 9 does have 2 files of makewhatis??
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 50 total points
Comment Utility
Is either a symbolic link to the other? Can you post the output from:

ls -al /usr/sbin/makewhatis

ls -al /usr/bin/makewhatis

Are they both the same size?

Traditionally , /usr/sbin is a directory for root useage, and the /usr/bin directory for normal users to use.

If these really are 2 different files rather than links, then I haven't a clue why:(

(   (()
(`-' _\
 ''  ''
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now