Rookie Learn Linux No. 005 Note root file system

Source: Internet
Author: User



First, the file system

Rootfs: Root file system

Fhs:filesystem Hierarchy standard file system level standards

/

/ boot system boot related files, such as kernel, INITRAMFS, and Grub (bootloader)

/Dev Device file:

Block device random device, data block

Character character device linear device, sequential

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

/etc Editable Text configuration file

/ Home User's home directory, which is usually the default for each user's/home/username

/root Root user home directory root user rights are very large (not recommended to use root login in a production environment) only when using the login

/liblibrary files and kernel module files

/lib/modules Kernel module files

Static library . A

Dynamic library . dll. So (Shared object)

/media mount point directory for mounting mobile devices

/mnt mount point directory, which is used to mount additional temporary file systems

/misc Miscellaneous

/optoptinal Optional Directory, third program installation directory (now not stored here)

/proc pseudo file system, kernel mapping file (in fact there is no file) system tuning to use this directory

/sys Pseudo file system, property mapping files associated with hardware devices, managing hardware

/tmp Temporary temp file system

/var variable variable file directory

/binBinary executable directory (user command)

/sbinBinary executable directory (Administrative command)

/usr universal,shared,read-only Global, shareable, read-only

/bin

/sbin

/lib

/usr/local:

/bin

/sbin

/lib


II. Linux Naming conventions

1. Length cannot exceed 255 characters

2. Cannot use/as file name

3. Any other characters can be, strictly case-sensitive

4. The filename cannot be the same as the file name (neither Windows Linux)


Third, document management

TouchChange file timestamps

-c do not create any files

-A change only the access time

-m change only the modification time

-t use [[CC]YY]MMDDHHMM[.SS] instead of the current time

StatDisplay file or file system status

RMRemove files or directories

-I prompt before any removal

-F ignore nonexistent files, never prompt

-R remove directories and their contents recursively

RM-RF/Remember not to use this command, all files will be deleted

Create files You can use the file editor to create

NanoNano ' s another editor, an enhanced free Pico clone

English character ASCII (American standard Code for information interchange)

Store 128 different characters, the computer stores the smallest unit bytes

2^7=0,127000 0000-111 1111

Kanji (GB GB18030 GBK GB2312 Unicode full character set)

2^16

Two bytes a kanji

0000 0000 0000 0000


Iv. Directory Management

Ls

Cd

Pwd

mkdirmake a empty directory

e.gmkdir-pv/mnt/test/{x/m,y} curly braces Expand

MKDIR-PV/MNT/TEXT2/{A,D}_{B,C}

Create catalog A_b a_c d_b D_c

-P No error if existing, make parent directories as needed

-v print a message for each created directory

RmDirRemove empty directories

- p can only delete one vein only son

e.grmdir-p a/b/c/d/

Tree View directory Trees

Run the program

Device Management

Software Management

Process Management

Network management



This article is from the "Winthcloud" blog, make sure to keep this source http://winthcloud.blog.51cto.com/2180779/1853947

Rookie Learn Linux No. 005 Note root file system

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.