Linux directory structure and directory management
Linux directory structure:
a directory to create rules
FHS file system hierarchy standard specifies the Linux operating system which directories must have the
/ boot / bin / sbin / etc / sys / proc / mnt / media / usr / option / var / home / root / tmp
2 directory structure
tree
- / rootfs root file system after the system starts the hard disk to be used must have a driver
after completion of the disk drive installation stage 1.5; - (> ramdisk /) installed in driver stage grub1.5 at this point you can hang the real root file system; and this is what we specified file system at the time of system installation root partition; this partition is called the root file system;
with other root directories are at the root; we call this structure tree structure;
3 common directory
/ boot system and stores a boot program files separate partition
directory / etc default configuration file in
/ etc / opt software configuration file in directory / opt is mounted in
the image etc / X11 displayed in Linux interface C / S structure 11 is the version number is X protocol
/ etc / sgml page label statement
/ etc / xml web markup language
/ bin / sbin store command files
/ sys / proc file system processes Dummy file directory virtual file directory)
/ mnt / media - / mnt mount the disk device file to mount a long-term need to hang in this directory / media
Temporary files on the device mount / media directory
/ home / root ordinary user's home directory root user's home directory
local / var dynamic files stored in
/ var / log / log is used to store
/ tmp directory temporary files for all users 30 days without access to automatically delete
/ usr / Linux system, another independent kingdom
/ usr / bin / usr / sbin / usr / local hierarchy replace the earlier local / opt directory
/ option to store third-party software is now rarely used
/ usr / local third-party software used to store directory
management directory 4
issue of absolute and relative paths path 4.1
4.2 directory related command
mkdir -pv also create multi-level directory rmdir remove empty directory rm -r delete a directory
tree -d display only the file directory
mv modify the directory name of the directory to copy a file cp -R