General
cancel
Showing results for 
Search instead for 
Did you mean: 

diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

SOLVED
Go to solution
Maaz
Valued Contributor

diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Hi All,

can anyone plz define/explain the diff between
1. /bin and /usr/bin
2. /sbin and /usr/sbin

Peace n Regards
Maaz
5 REPLIES
Stuart Browne
Honored Contributor
Solution

Re: diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Traditionally binaries in '/bin' and '/sbin' are binaries of which are required at startup, when filesystems haven't yet been loaded.

'/usr/bin' and '/usr/sbin' are binaries are for general usage.

Some Unicies take this a bit futher stating that '/sbin' and '/usr/sbin' are statically-linked binaries for use in a rescue environment.

Most now just treat '/sbin' and '/usr/sbin' to house super-user privileged type binaries.
One long-haired git at your service...
Maaz
Valued Contributor

Re: diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Many Thanks Dear Stuart.
Ramalingam
Advisor

Re: diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Hi ,
I had no clear idea about File System Naming Conventions
But Google helped me find these links..

1. Linux File System Hierarchy

http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/

2. File System Naming Conventions

http://dsnra.jpl.nasa.gov/devel/sw_cm/file_systems.html

I hope this will help you ...and those who view this thread later...

Regards,
Ram.
We Learn the most When We have to Invent
Andrew Bruce
Valued Contributor

Re: diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Thanks for that info - I'm just browsing around, and it is amazing what you can pick up!

I'd never really thought about it, and never thought to ask neither...

Good question! :-)

A.

ps No points for me please! ;-)
I Love it when a plan comes together!
Maaz
Valued Contributor

Re: diff b/w /bin, /usr/bin, /sbin/ and /usr/sbin

Ramalingam, many thanks for the url u provided.
and Andrew plz accept the regards for the supporting words.

Thanks Forum
Regards
Maaz