What is the use and directory management of each Linux directory?

Source: Internet
Author: User

/boot: System boot related files, such as kernel, INITRD, and Grub (bootloader)

/dev: Device files

Block devices: Random access, data blocks

Character Devices: Linear access, by character

/etc: Configuration file

/home: The user's house directory, default is/home/username

/root: Administrator's home directory

/lib: library file

Static Library. A

Dynamic library. dll,. So (Shared object)

/lib/modules: Kernel module files

/media: mount point Directory

/MNT: Additional Temporary file system

/misc: Miscellaneous

/OPT: Optional catalogue;

/usr/local: Install third-party software

/proc: Pseudo file system, kernel mapping file (related to system tuning)

/sys: Another pseudo file system, a property mapping file associated with a hardware device

/tmp: Temporary file system, everyone can create, but can only delete their own

/var: a variable file

/bin: Executable file, user command

/sbin: Managing Commands


/usr: shared, read-only files globally

/usr/bin

/usr/sbin

/usr/lib

/usr/local: Non-critical system third-party software storage location

/usr/local/bin

/usr/local/sbin

/usr/local/lib



mkdir: Creating a Directory

Mkdir-p/root/m/z/o Create in turn

MKDIR-V Display creation Process

RmDir: Delete directory (can only be used to delete empty directories)

Rmdir-p can delete traced's directory

Creation and deletion of files:

Touch

Stat + files Show status information for files


Change file timestamp:

Touch-a Changing access times

Touch-m Change the modification time

Touch-t-M 201212121212 (2012 12-12 12:12)

Rm-i Delete file and prompt to delete

RM-RF: Recursively delete files in directories and directories



What is the use and directory management of each Linux directory?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.