日期:2014-05-16  浏览次数:21074 次

linux 目录意思及用途

 

Directory Name Use to store this kind of files
/bin All your essential program (executable files) which can be use by most of the user are store here. For e.g. vi, ls program are store here.
/sbin All super user executable (binaries) files are store which is mostly used by root user . As mentioned in Red Hat Linux documentation: "The executables in /sbin are only used to boot and mount /usr and perform system recovery operations."
/home Your sweet home. Mostly you work here. All the user have their own subdirectory under this directory.
/etc

Configuration file of your Linux system are here. For e.g. smb.conf - Samba configuration file. It may contained sub directories like xinetd.d or X11 which contains more configuration files related to particular application or program. See therest of subdirectories.

/lost+found When your system crashes, this is the place where you will get your files. For e.g. You have shutdown your computer without unmounting the file system. Next time when your computer starts all your 'fsck' program try to recover you file system, at that time some files may stored here and may be removed from original location so that you can still find those file here. 
/var Mostly the file(s) stored in this directory changes their size i.e. variable data files. Data files including spool directories and files, administrative and logging data, and transient and temporary files etc.
/usr

Central location for all your application program, x-windows, man pages, documents etc are here. Programs meant to be used and shared by all of the users on the system. Mostly you need to export this directory using NFS in read-only mode. Some of the important sub-directories are as follows:
bin - sub-directory contains executables
sbin - sub-directory contains files for system administration i.e. binaries
include - sub-contains C header files
share - sub-contains contains files that aren't architecture-specific like documents, wallpaper etc.
X11R6 - sub-contains X Window System

/lib All shared library files are stored here. This libraries are needed to execute the executable files (binary) files in /bin or /sbin.
/tmp Temporary file location
/dev

Special Device files are store here. For e.g. Keyboard, mouse, console, hard-disk, cdrom etc device files are here.

/mnt Floppy disk, CD-Rom disk, Other MS-DOS/Windows partition mounted in this location (mount points) i.e. temporarily mounted file systems are here.
/boot Linux Kernel directory
/opt Use to store large software applications like star office.
/proc This directory contains special