The following is an example; varies across different Un*xs and even then no hard and fast rules.
/home (or /exports/home in Solaris) - user stuff.
/bin, /sbin - system programmes.
/lib - system libraries.
/include - system header files.
/etc - configuration stuff.
/tmp - temporary stuff.
/swap - swap space. You never touch this.
/usr - all sorts of system stuff:
- /usr/bin, /usr/sbin - programmes
- /usr/lib - libraries
- /usr/src - source files (including kernel source)
- /usr/include - header files
- /usr/local - similar structure to /usr, often for non-official stuff, for instance stuff that you build as opposed to what comes on the distribution.
/var - never figured out exactly what should go in here, tends to be a bit of a miscellany. PID (process ID) files tend to lurk in /var/run, also tend to have a /var/tmp, /var/lib. |