Top-level Direcotries in Linux File System
Directory | Description |
---|---|
/ | This root directory forms the base of the file system.All files and directories are contained logically in the root directory,regardless of their physical locations. |
/bin | Contains the executable programs that are part of the Linux operating system. Many Linux commands, such as cat, cp, ls, more, and tar, are located in /bin. |
/boot | Contains the Linux kernel and other files that the LILO and GRUB boot managers need. (The kernel and other files can be anywhere, but placing them in the /boot directory is customary. |
/dev | Contains special files that represent devices attached to the system. |
/etc | Contains most system configuratoin files and the initialization scripts(in the /etc/tc.d subdirectory) |
/home | Converntional location of the home directories of all users. User edulaney's home directory, for example, is /home/edulaney. |
/lib | Contains library files for all programs stored in /sbin and /bin directories (including the loadable driver modules) needed to start Linux. |
/lost+found | Directory for lost files. Every disk partition has a lost+found directory. |
/media | A directory for mounting file systems on removable media, such as CD/DVD-ROM drives, floppy disks, and Zip drives. Contains the /media/floppy directory for mounting floppy disks and /media/cdroom or /media/cdroom0 directory for mounting the CD/DVD-ROM drive. if you have a CD/DVD recorder, you find a /media/cdrecorder directory instead of /media/cdrom and may also find /media/DVD. |
/mnt | A directory for temporarily mounted file systems |
/opt | Provides a storage area for large application software packages. For example, some distributions install the OpenOffice.org Office suite in the /opt directory. |
/proc | A speical directory that contains various information about the processes running in the Linux system. |
/root | The home directory for root user. |
/sbin | Contains executable files representing commands typically used for system-administration tasks and used by the root user. Commands such as halt and shutdown reside in the /sbin directory. |
/srv | Contains data for services( such as Web and FTP ) offered by this system. |
/sys | A special directory that contains information about the devices, as seen by the Linux kernel. |
/tmp | A temporary directory that any user can use as a scratch directory, meaning that the contents of this directory are considered unimportant and usually are deleted every time the system boots. |
/usr | Contains the subdirectories for many important programs, such as the X Window System( in the /usr/X11R6 directory ) and the online manual. |
/var | Contains various system files(such as logs), as well as directories for holding other information, such as files for the Web server and anonymous FTP server. |
Important /usr Subdirectories
Subdirectory | Description |
---|---|
/usr/X11R6 | Contains the X Window System software |
/usr/bin | Contains executable files for many more Linux commands,including utility programs that are commonly available in Linux but aren't part of the core Linux operating system. |
/usr/games | Contains some old Linux games |
/usr/include | Contains the header files (file names ending in .h) for the C and C++ programming languages; also includes the X11 header files in the /usr/include/X11 directory and the Linux kernel header files in the /usr/include/linux directory. |
/usr/lib | Contains the libraries for C and C++ programming languages; also contains many other libraries, such as database libraries and graphical libraries. |
/usr/local | Contains local files. The /usr/local/bin directory, for example, is supposed to be the location for any executable program developed on your system |
/usr/sbin | Contains many administrative commands, such as commands for electronic mail and networking. |
/usr/share | Contains shared data, such as default configuration files and images for many applications. For example, /usr/share/gnome contains various shared files for the GNOME desktop, and /usr/share/doc has the documentation files for many Linux applicaions (such as the bash shell, the Sawfish window manager, and The GIMP image-processing program). |
/usr/share/man | Contains the online manual (which you can read by using the man command) |
/usr/src | Contains the source code for the Linux kernel (the core operating system) |
Important /var Subdirectories
Subdirectory | Description |
---|---|
/var/cache | Storage area for cached data for applications |
/var/lib | Contains information relating to the current state of applications |
/var/lock | Contains locked files to ensure that a resource is used by one application only |
/var/log | Contains log files organized into subdirectories. The syslogd server stores its log files in /var/log, with the exact content of the files depending on the syslogd configuration file /etc/syslog.conf. For example, /var/log/messages is the main system log file; /var/log/secure contains log messages from secure services (such as sshd and xinetd); and /var/log/mainlog contains the log of mail messages. |
/var/mail | Contains user mailbox files |
/var/opt | Contains variable date for packages stored in /opt directory |
/var/run | Contains data describing the system since it was booted |
/var/spool | Contains data that's waiting for some kind of processing |
/var/tmp | Contains temporary files preserved between system reboots |
/var/yp | Contains Network information Service(NIS) database files |
No comments:
Post a Comment