Summary of common Linux commands (5) disk management and common linux commands
Disk Management |
Command |
Option |
Annotation |
Example |
Df |
[Option] |
Display disk space usage |
Displays the disk space as an employee, in MB: df-M |
-I |
Display Results Using inodes |
-K (m) |
Display Results in KB (MB) |
Du |
[Option] [directory name] |
Displays the disk space occupied by all files and Their subdirectories in the specified directory. |
Count the usage in the current directory, but only count the total value, in M: du-sm |
Fdisk |
[Option] [device name] |
If no parameter is specified, the device is partitioned (formatted) |
Display the partition status of the sda device: fdisk-l/dev/sda |
-L |
Display Device partition information |
Free |
|
View memory (memory classification: Total Amount of shared application cache kernel cache buffers swap (swap storage is the virtual memory in Windows) |
Free; |
Mount |
[-T type] device name mount point |
Used to mount storage devices |
Mount the optical disk device in the format of iso9660 file system. The mount point is/mnt Directory: mount-t iso9660/dev/cdrom/mnt. |
- |
Mount all relevant devices according to/etc/fstab |
-H |
Mount help information |
-L |
List all mounted devices and mount points |
-V |
List mount versions |
-T |
File System of the mounted storage device |
Unmount |
+ Mount point or device name |
Detach a mounted device |
Detach a mounted CD: umount/mnt |