2, summarize the Disk Management and file system Management design of the use of various commands, and note certain examples;
Fdisk is the most commonly used hard disk partition tool partition Management sub-command:p: display n: Create d: delete t: Modify partition idl: list all support ID types w: Save exit q: Discard changes and exit m: Get Help file System Properties View and adjust tool: E2labele2lable device [label]tune2fs display the properties of the Ext series file system, or adjust its properties ;-L: Displays information in the Super block, displays information about the properties and layout of the entire file;-l ' LABEL ': Modify the volume label;-m #: Adjust the percentage of administrative space reserved to administrators;-j: ext2 -- > ext3-o: File System Properties start or close -o: The file system default mount option is enabled or turned off dumpe2fs:-h: only show Super block information;fsck: filesystem checkfsck -t typefsck.type-a: Automatic repair error-r: Interactive repair error-f: Force detection E2fsck:ext Series file system dedicated detection repair tool;-y: Auto Answer "yes"-f:forcemount: reads the/etc/mtab file to display all devices that are already mounted on the current system; MOUNT -A: Mount all file systems in the/etc/fstab file that support automatic mounts ; mount [options] [-o options] device mount_point[options]: Command options [-o options] : Mount option device: the device to mount (1) Device file:/dev/sda5 (2) label:-l ' LABEL ' (3) UUID:-U ' UUID ' (4) Pseudo file system name mount_point: mount point common options:-t type: File system type-r: mount this file system in read-only mode-w: to read and write Mode mount this file system-N: Each file system automatically updates the/etc/mtab file when it is mounted, and-n is used to suppress this feature; At this point, if you want to view the mountedAll file system:cat /proc/mounts-a: automatically mount all devices that support automatic mounting;-B: Bind directory to another directory;-o mount option: Async: Async Mode sync: Synchronization mode Atime/noatime: Whether to update the access timestamp, Diratime/nodiratime: Whether to update the directory's access timestamp;auto/noauto: allow this device to be automatically mounted; exec/ NOEXEC: Whether the application is allowed to execute on this file system, Dev/nodev: whether to support the use of device files on this device, Suid/nosuid:remount: Re-mount rorwuser/nouser: allow normal mount of this device ACL: whether to support the use of facl;defaults:rw, suid, dev, exec, auto, nouser, and on this device Async swap partition: Free command: View memory and swap usage status-m: -g: in GB mkswap: Create swap partition mkswap [option] device-l ' LABEL ' swapon: Enable swap partition swapon [option] [device]-a: activate all swap partitions-p priority: Set its priority; Swapoff: Disable swap partition Swapoff [option] [device] link file on file system: Hard link: Two paths pointing to the same inode cannot be made to the directory Multiple different paths to the same inode cannot be made across partitions; a hard link to create a file increases the Inode reference count; Deleting a hard link only deletes one of its access paths, and only the last path is deleted; Symbolic Link: The data of the linked file points to another file path ; You can do the directory, you can cross the partition, point to another file path, not the inode; creating a symbolic link to a file does not increase its reference count; Delete the original file, the symbolic link file will not be;
September 01, 2015--course training