Summary of common Linux commands (5) disk management and common linux commands

Source: Internet
Author: User

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

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.