Solved

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

Posted on 2006-07-23
4
1,464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 17165218
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 88

Expert Comment

by:rindi
ID: 17166356
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
ID: 17166420
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
ID: 17170788
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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