Linux File System



In Linux, programs install into 'bin'ary directories so that they are all contained in one place. Libraries containing frequently used programming routines are kept in 'lib'rary directories.
 

Here's a general guide on what the main directories contain:
 

/bin

This is where basic shell commands such as ls and mv reside. This directory is always in the executable path.

/boot

This is where the kernel is stored and Lilo gets it's information from. This is also where module information is stored.

/dev

This is where your devices, or hardware are contained. Hardware devices can be accessed like files.

/etc

This is where programs create files that store their options. Here you can set up your preferences for an Internet connection, for Quake II, etc.....

/home

This is where users accounts are located. If you have added any users other than your standard root account, they will show up here.

/lib

This is where the basic libraries for booting Linux and running standard programs live. Do not delete anything in this directory.

/mnt

This is the location where your cdrom, superdisk, zip drives and dos drives are mounted.

/opt

This directory is where some distro's and applications install their programs to.

/proc

This is an area where information is kept on your hardware devices and system board.

/root

This is your main account directory. The root user (Ie: you) have this space to keep all your downloads, and anything else you want to keep in there.

/sbin

Like /bin. The 's' stands for System Binaries, where commands like shutdown, lilo and fdisk are stored.

/tmp

This directory is short for temporary.

/usr

When you install programs that need to be accessed by all users, this is the directory they get installed into. There's also another library directory for the new programs so that all users can see and access them. Any program that is not automatically installed with the distribution, and needs to be accessed by all users ends up in this directory.

/var

This is where your log files, and printer files are kept.