Solved

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

Posted on 2006-07-23
4
1,458 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 77

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

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…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

827 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