LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-15-2005, 11:13 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
openbsd difference between bin and sbin


In OpenBSD all userland files are in /bin and system binaries are in /sbin.

But there are files in /usr/local/bin and /usr/local/sbin.

I was wondering why there're two seperate places to keep files. ie. /bin and /usr/local/bin? Why they don't put all the userland binaries in /bin instead?
 
Old 07-15-2005, 11:28 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The /usr/local directories are for optional packages, i.e. stuff you installed from packages or compiled. The way it works is:

/ -- critical binaries (i.e. stuff that is needed before /usr is mounted
/usr -- system binaries
/usr/local -- as above

I guess the reason all stuff doesn't go into /bin is so you can have a small root partition that isn't cluttered by a lot of stuff you've installed.
 
  


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
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 12:10 PM
kernel panic, everything in bin and sbin have astericks on them JunLitsu Linux - Software 3 11-01-2003 04:30 PM
/bin vs. /sbin mikeshn Linux - Software 6 10-07-2003 03:59 PM
sbin and bin Stephanie General 5 09-05-2002 08:47 AM
list of programs in /usr/bin, /sbin, etc. punt Linux - General 1 07-31-2001 04:19 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:52 PM.

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