df, du, fsck, dumpe2fs
file system view command df
df [options] [mount point]
-a displays all file system information, including special file systems such as / proc, / sysfs
-h usage capacity display units, such as et KB, MB or GB
-T displays the file system type
-m in MB display capacity
-k in KB display capacity. The default is in KB
Statistics directory or file size
du [options] [directory or file name]
-a display disk usage of each sub-file. The default statistics only take up the amount of disk subdirectories
-h using the unit to display disk usage, such as KB, MB or GB
-s statistics total footprint without listing footprint subdirectories and sub-files
du and df command difference command
df command from the file system is considered, not only to consider the space occupied by the file, but also statistics command or program space is occupied (the most common is the file has been deleted, but the program does not free up space)
du command is file-oriented, it will be counted only the space occupied by the file or directory
File system repair command fsck
fsck [options] partition device file name
-a: do not display user prompts, Automatically fix file system
-y: Auto repair. -A role and consistent, but some file system supports only -y
Disk status display command dumpe2fs
dumpe2fs partition device file name
Mount command
Query and automatically mount
Mount the -l
# query system has been mounted equipment, -l will display the label name
Mount -a
# based configuration file / etc fatab content / automatic mount
Set command format
mount -t [file system] [-L label name] \ [- o Options] special device file name of the mount point
option
-t file systems: the file system type is added to specify the type of mount, can be ext3, ext4, iso9960 file systems such as
-L label name: Specifies the label mount partitions instead of installing the device file name mount
-o special options: additional option to specify mount
U disk and mount the CD-ROM
Mount the CD
mkdir / mnt / cdrom /
# build mount point
mount -t iso9660 / dev / cdrom / mnt / cdrom
mount the CD
mount / dev / sr0 / mnt / cdrom /
Uninstall command
umount device file name or mount point
umontt / mnt / cdrom
Mount u disk
fdisk the -l
# View u disk device file name
mount -t vfat / dev / sdbl / mnt / usb