I. Creating and editing body files with the VI editor
- VI Editor Mode of operation
- Command-line mode
- Edit mode
- Extended mode
- Not finished finishing
Two. Hard disk partitioning, formatting, and management of file systems (i)
- Classification of hard disk partitions: primary, extended, and logical partitions, with up to 4 primary partitions on one hard disk
- fdisk: Create a disk partition and intelligently identify the disks below 2T
- d: Delete A (already existing) partition
- l: List the types of partitions (already existing)
- m: List all commands used in Fdisk
- n: Add a new partition
- P: List The contents of a partitioned table
- q: Quit Fdisk, but do not store changes
- T: Change the ID of the partition system
- W: Exit Fdisk and store the changes
- partprobe: Re-initializes the partition table of the in-memory kernel.
- Create a file system (data management)
- file System : A file system is the method and data structure used by the operating system to identify files on a disk or partition; that is, how to organize files on disk
- ext2: Standard file system in Linux systems
- ext3: A log-file system
- EXT4: An extended journaled file system for EXT3 systems
- LVM: Logical Disk Volume management
- iso9660: The only universal Disc File system available
- formatting commands
- mkfs. File system type : For example MKFS.EXT4/DEV/SDB1, format the partition/dev/sdb1 as a EXT4 file system
- Set label (partition name)
- E2label: Set or view the label name of a device, such as E2LABEL/DEV/SDB1, to view the label of a/DEV/SDB1 partition
- E2LABEL/DEV/SDB1 WG: Set the label of the/DEV/SDB1 partition to WG
Three. Hard disk partitioning, formatting, and management of file systems (ii)
- File system mount and unload: Mount refers to a device (usually a storage device) attached to an existing directory
- Mount: Implement file system mounts, such as MOUNT/DEV/SDB1/WG to mount the/DEV/SDB1 partition to the/WG directory
- umount: Implementation of file System uninstallation
- Hard links, soft links
- Symbolic (soft) Link : A symbolic link is a file that points to another file
- LN: A soft link to create a link between different drive characters
For example Ln–s wolf/dog.wolf.baby bodydog/dog_ wolf.boy, create a Wolf/dog.wolf.baby dog_ symbolic link for the Wolf.boy file and place it in the Bodydog directory
- Hard link : **ln source file Shortcut file
- Hard links to Inode numbers cannot be deleted across partitions can delete source files read Shortcut files * *
- Check disk space DF
- -A: Show all disks
- - H: unit conversion
- - T: Displays the type of file system
- du: Displays only the directory size of subdirectories below the current directory and the total size of the current directory, a h ibid.
- Innode Storing file information
Day04_vim Editor and Hard drive operation