02-03-linux Root File system detailed

Source: Internet
Author: User

File system:

Rootfs: Root file system


FHS: File system level standard, which specifies the directory that Linux distributions should create


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

/dev: Device files

Device files

Block device: random access device; data block; hard disk

Device number: Main device number (major) and secondary device number (minor)

Character device: Linear access device, by character, keyboard, mouse, monitor

/etc: Configuration file

Home directory for users, the home directory of each user is usually the default of/home/username

/root: Admin Home Directory

/lib: library file Libary

Static library;. A

Dynamic library;. Dll,so (Shared object) Dynamic shared object

/lib/modules: Kernel module files

/media: mount point directory, mobile device

/MNT: mount point directory, additional temporary file system

/misc: Miscellaneous

/OPT: Optional directory, installation directory for third-party programs

/proc: Pseudo file system, kernel mapping file

/sys: Pseudo file system, property mapping file related to hardware device

/tmp: Temp file system,/var/tmp

/var: a variable file

/bin: Executable file, user command

/sbin: Managing Commands

/usr: global shared read-only file shared,read-only

/usr/bin

/usr/sbin

/usr/lib

/usr/local Some files that store third-party software

/usr/local/bin

/usr/local/sbin

/usr/local/lib


Naming rules:

1: cannot exceed 255 characters in length

2: Cannot use/when file name

3: Strictly case-sensitive


Relative path: Destination file path relative to the current location

Absolute path: The path from the root to the destination file


File Management

Touch: Modify the timestamp or create a file

-C: Do not create files

-A: Change access time only

-M: Change Modify time only

Change time will vary with atime and mtime.

-a-t time: Can modify atime for a specified time

-m-t time: Can modify mtime for a specified time

You can also create a file using a text editor

Nano

VI or VIM

RM: Deleting files

-I: prompt whether to delete

-F: Do not prompt for immediate deletion

-RF: Delete directory and recursively delete all files in this directory

Directory Management

Ls

Cd

Pwd

mkdir: Creating an empty Directory

-P: Create a multilevel subdirectory

{}: Command line expansion; Mkdir-pv/mut/test/{x/m,y} create x/m and Y directories under test; Mkdir-pv/mnt/test2/{a,d}_{b,c} create A_b,a_c,d_b,d_c four folders under Test2

-V: Show Command execution details

Tree: Viewing the directory tree

RmDir: Delete directory (only empty directory can be deleted)

-P

Run the program

Device Management

Software Management

Process Management

Network management


This article is from the "Lemon" blog, be sure to keep this source http://xianglinhu.blog.51cto.com/5787032/1620349

02-03-linux Root File system detailed

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.