Day04_vim Editor and Hard drive operation

Source: Internet
Author: User

I. Creating and editing body files with the VI editor
    1. VI Editor Mode of operation
      • Command-line mode
      • Edit mode
      • Extended mode
    2. Not finished finishing
Two. Hard disk partitioning, formatting, and management of file systems (i)
  1. 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.
  2. 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
  3. formatting commands
    • mkfs. File system type : For example MKFS.EXT4/DEV/SDB1, format the partition/dev/sdb1 as a EXT4 file system
  4. 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)
    1. 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
    2. 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

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.