LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2009, 08:50 AM   #1
scucci
Member
 
Registered: Sep 2009
Posts: 31

Rep: Reputation: 15
Difference between filesystem directories


Hello all,

Can someone help clear up the differences between the following directories:

1. /bin and /sbin
2. /opt and /usr
3. /sys and /dev

I have a general knowledge of what all these do, but I wanted to know a little more in-depth of what the differences are. They seem to have some gray area's after reading about them.

Thanks
 
Old 10-14-2009, 09:42 AM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
/bin > general binaries
/sbin > secure binaries, ie only root should be useing these as in the wrong hands they can do damage, and general users don't really need them

/opt > optional
/user > user, most day to day programs and there associated libraries, man pages etc

/sys > mainly for the kernel to expose varoius things to the real world
/dev > this is where the hardware and virtual devices show up (everything is a file in *nix type systems)

http://en.wikipedia.org/wiki/Filesys...archy_Standard

http://www.linuxfoundation.org/colla...workgroups/lsb

 
Old 10-14-2009, 10:33 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by scucci View Post
Hello all,

Can someone help clear up the differences between the following directories:

1. /bin and /sbin
2. /opt and /usr
3. /sys and /dev

I have a general knowledge of what all these do, but I wanted to know a little more in-depth of what the differences are. They seem to have some gray area's after reading about them.

Thanks
1. /bin - It contains system binaries or the useful commands executable by super users as well as non-previlaged users in the system

2. /sbin - It contains system binaries or the commands used for system maintenance and/or administrative tasks executable only by super users

3. /usr - contains read-only sharable data(all the user binaries, their documentation, libraries, header files,X and its supporting libraries)shared by all hosts.So dont keep host specific data here..

4. /opt - This directory is reserved for all the software and add-on packages that are not part of the default installation

5. /dev - It's the location of special or device files

6. /sys - All system information files managed by kernel
 
Old 10-14-2009, 10:35 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
/sbin is like /bin but for system executables
 
Old 10-14-2009, 06:47 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
On Linux, /sys is usually called /proc
 
  


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
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 04:26 AM
Difference between Readonly Filesystem and Mounting filesystem as readonly bluepenguine Linux - Newbie 1 06-19-2009 01:26 AM
What is the difference between filesystem backup and a server image? ShaqDiesel Red Hat 1 08-29-2008 04:43 AM
LXer: Linux ext3 Filesystem" Optimize Directories / File Access Time LXer Syndicated Linux News 0 02-01-2008 09:10 AM
encryption of directories/filesystem gongli Linux - Security 1 02-21-2004 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 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