Linux disk and File System Management (note)

Source: Internet
Author: User

First, the simple operation of the file system

1, DF: Disk and directory capacity DF [-ahikhtm] directory or file name
-H: Display in GB, MB, KB and other formats that are easier for people to read
-I: No hard disk capacity, and the number of Inode is displayed
2. Du: Disk and directory Capacity du [-ahskm] file or directory name
-S: List totals only,
-H: Display in GB, MB, KB and other formats that are easier for people to read
3, DUMPE2FS: View the information of each section and Superblock
4. LN: Connection file ln [-SF] source file
-S: If you do not add any parameters to the connection is a hard connection,-S is a symbolic connection
5, EXT2 file system mainly includes boot Sector,superblock,inode bitmap,block bitmap, inode table,data block six parts.

partition, format, test and mount the disk

1. FDISK: Disk partition Fdisk [-1] Device name
2. MKFS: Disk Format mkfs [-t file system format] device file name
3. fsck: Disk Check fsck [-t file system] [-acay] Device name
4. Mount: Disk mount and unload mount device name mount point
5. Umount: Disk Offload umount [-FN] device file name or mount point
-F: Force Mount-N: Uninstall without update
6. Mknod: Disk parameter modification mknod device name [bcp] [Major] [Minor]
Parameter: B, set the device name to be an external storage device file, such as a hard disk
C. Set the device name to be an external input device file, such as mouse/keyboard
P, set the device name to become a FIFO file
Major Master Device Code Minor This device code

Linux disk and File System Management (note)

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.