Linux disk management commands and usage examples, linux disk command examplesLinux disk management
Linux disk management is directly related to the performance of the entire system.
Linux disk management commonly uses three commands: df, du, and
Function: Counts the size of the disk space that the directory (or file) occupies.
Syntax: du [options] [files or directories]
Parameters:
-S: Only the total number of blocks of data used for each names parameter is given.-A: Recursively displays
DF View the total capacity of mounted disks, usage capacity, remaining capacity, etc., can not add any parameters, by default is displayed in K unitsDF Common parameters are –i-h-k–m, etc.-I display results using inodes-h display in the appropriate
" view disk or directory capacity df and du"DF View the total capacity of mounted disks, usage capacity, remaining capacity, etc., can not add any parameters, by default is displayed in K unitsDF Common parameters are –i-h-k–m, etc.-I display
Linux Disk Quota 1. the disk quota is restricted only for the entire partition: When the disk quota is actually run, it is restricted for the entire partition. For example, if/dev/hda5 is loaded under/home, all directories under/home are restricted.
Liunx disk management Command records and liunx disk Command records
Linux disk management is directly related to the performance of the entire system.
Linux disk management commonly uses three commands: df, du, and fdisk.
Df: list the total
In the early days of computer development, the price of "large capacity" hard disk is still quite high, the main way to solve the problem of data storage security is to use devices such as tape drive to backup, although it can guarantee the security
Summary of basic Linux disk management knowledge (detailed) and basic linux knowledge
I. Attaching and detaching storage devices
Common operation commands for mounting and detaching storage devices: fdisk-l, df, du, mount, and umount.
Fdisk-l
Instruction: DFCheck the disk space usage of the file systemYou can view the total capacity, usage space, remaining space, mount location, and so on for all mounted disksSyntax:# DF [OPTION] [FILE]File is an optional list of one or more path names,
Linux disk and File System Management (1) _ partition formattingLinux disk management Hard Disk: mechanical hard disk SSD solid state disk mechanical: track sector: minimum texture storage unit, each sector size is 512 bytes cylinder cylindrical:
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.