Appendix A. Directory Structure

Directory Tree                          Type Note
==============                          ==== ====
/                                       f    whole filesystem is root writable
|-- bin                                 f     
|-- boot                                f
|-- dev                                 d    
|   |-- [other devices]                 d     
|   `-- shm                             d    resizable ramdisk
|       |-- etc                         w    resolv.conf
|       |-- tmp                         w    /tmp
|       |   |-- in                      w    smsgw dir (if enabled)
|       |   |-- logo                    w    smsgw dir (if enabled)
|       |   |-- obex                    w    obexserver dir
|       |   |-- out                     w    smsgw dir (if enabled)
|       |   |-- tone                    w    smsgw dir (if enabled)
|       `-- var                         w    ramdisk part of /var
|           |-- lock                    w    
|           |   `-- subsys              w     
|           |-- log                     w
|           |-- run                     w
|           `-- tmp                     w
|-- etc                                 f    system config and init scripts
|   |-- init.d -> rc.d/init.d           l
|   |-- pcmcia                          f
|   |   `-- cis                         f
|   |-- ppp                             f
|   |   `-- peers                       f
|   |-- rc.d                            f
|   |   |-- init.d                      f
|   |   `-- rc3.d                       f
|   |-- rc3.d -> rc.d/rc3.d             l
|   |-- snmp                            f
|   |-- ssh                             f
|   `-- sysconfig                       f
|-- lib                                 f    system libraries
|   |-- iptables                        f
|   `-- modules                         f
|           `-- [module directories]    f     
|-- mnt                                 f    mount points
|   |-- mtd                             f2   second flash, 8MB for user use
|   |-- nfs                             f    empty mount point 
|   `-- usb                             f    empty mount point 
|-- opt                                 f     
|-- proc                                p    proc filesystem
|-- sbin                                f    system binaries
|-- tmp -> dev/shm/tmp                  l    temporary data (ramdisk)
|-- usr                                 f
|   |-- bin                             f
|   |-- include                         f
|   |-- lib                             f
|   |-- local                           f
|   |   |-- bin                         f    user binaries
|   |   |-- games                       f
|   |   |-- include                     f
|   |   |-- lib                         f
|   |   |-- man                         f
|   |   |-- sbin                        f
|   |   |-- share                       f
|   |   `-- src                         f
|   |-- sbin                            f
|   `-- share                           f
|       |-- man                         f
|       |-- misc                        f
|       `-- terminfo                    f
|           |-- a                       f
|           |-- l                       f
|           |-- v                       f
|           `-- x                       f
`-- var                                 f
    |-- cache                           f
    |-- empty                           f
    |-- lib                             f
    |   |-- b2b                         f
    |   |-- dpkg                        f
    |       `-- info                    f   
    |   |-- misc                        f
    |   `-- setup                       f
    |-- local                           f
    |-- lock -> ../dev/shm/var/lock     l
    |-- log -> ../dev/shm/var/log       l    log files
    |-- opt                             f
    |-- run -> ../dev/shm/var/run       l 
    |-- spool                           f
    |   `-- cron                        f
    |       `-- crontabs                f
    |-- tmp -> ../dev/shm/var/tmp       l
    `-- www                             f
        `-- html                        f    WWW pages
Types
=====
d = device file system, can be used to configure Linux
f = FLASH file system, read/write, files will be saved on power-down
l = link, symbolic link
p = PROC file system, can be used to configure Linux
w = RAM file system, read/write, files will be lost on power-down