Disk management-related commands


df    Show information about the file system on which each FILE resides, or all file systems by default.

-h    print sizes in human readable format (e.g., 1K 234M 2G)

Tips: If the / partition or /home partition is full, the system will not be able to use properly; We recommend storing the experimental data in the /data directory, not in the /home directory.



du    Summarize disk usage of each FILE, recursively for directories.

-s    display only a total for each argument
-h    print sizes in human readable format (e.g., 1K 234M 2G)



lsblk    lsblk lists information about all available or the specified block devices.  The lsblk command reads the sysfs filesystem to gather information.

-a    print all devices
-f    output info about filesystems