Common Linux commands (27th)-df
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining space.
1.Command
Some commands to be mastered in CentOSDetails:
1. tar
Create a new tar file
$ tar cvf archive_name.tar dirname/
Decompress the tar file
$ tar xvf archive_name.tar
View tar files
$ tar tvf archive_name.tar2. grep
Search for strings in files (Case
Detailed DF command usage
A: displays the disk usage of all file systems and partitions.I: displays the I-nodes usage.K: The size is represented by K (default)T: displays the disk usage of all partitions in a file system.X: displays the disk
Common Linux commands (27th) and common linux commands
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining
Vi. Linux/UNIX operating command accumulation [kill, netstat, df, du], netstatduIn Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore,
IT administrators are constantly looking for new tools to make their lives easier. If these tools are free, they will be better ). I am usually very careful when downloading tools, especially for tools that don't require delivery but are expensive
We tested the performance of Mongodb's hundreds of millions of data records and tested the following items:
All inserts are performed in a single thread, and all reads are performed in multiple threads)
1) normal insertion performance: Each
First, check the hard disk read speedCommand: Hdparm-t/dev/sda5Printed: Timing buffered disk reads:254 MB in 3.01 seconds = 84.34 mb/secDescription: Be able to specify which hard disk to query for!Second, find the most consumption of iowait
disk-to-directory capacityNow we know that the overall data of the disk is in the Superblock block, but the capacity of each individual file is recorded in the Inode. How do you call these data under the text interface? Let's talk about these two
Journalctl [OPTIONS ...] [MATCHES ...]Query the journal.Flags:--system Show the system journal--user Show the user journal for the current user-M--machine=container Operate on local CONTAINER--since=date Show entries not older than the specified
Article Title: Use the disk quota to manage Linux user accounts. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
1.top commandThe top command shows the resource usage of each process in the system in real time. Use the top command output as follows:650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8E/A0/wKiom1jHVJLgHSbjAACsB_s6xy0204.png "title=" _ 20
1.top commandThe top command shows the resource usage of each process in the system in real Time. Use the top command output as Follows:650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8E/A0/wKiom1jHVJLgHSbjAACsB_s6xy0204.png "title=" _ 20
Iostat for output CPU and disk I/O-related statisticsCommand parameters-C Display of CPU usage-D Display disk usage-K displays in kilobytes-m displays in units of M.-N Display of disk array (LVM) information-N Display of NFS usage-p[disk] Displays
Linux commands1. Ls-a,–all lists all files in the directory, including the. The implied file at the beginning-L The file's permissions, owner, file size, and other information, in addition to file names2. CD CD/system root directory3.PWD pwd–p Show
Linux for viewing process commands are also very powerful, commonly used such as: PS TopBut there is less uniformity in disk performance monitoring.Here are some of the disk monitoring commands, here just to play a role, detailed use of parameters
Ubuntu view files and disk space size management(1) View file sizeView all file sizes (including subfolders) under the current folderDu-sh# du-h15M./package16K./.fontconfig4.0K./.cache5.1M./.rpmdb20M.Du-sh * | grep G28G
DF
DF (disk free)function Description:Displays information about the disk.Syntax:DF [-ahhiklmpt][--block-size=][-t ][-x ][--help][--no-sync][--sync][-- version][file or device]Additional notes:DF Displays the disk's file system and usage
RAID cards are generally divided into hard raid card and soft RAID card two kinds of hardware to achieve the RAID function is hard raid, independent RAID card, the motherboard integrated RAID chip is hard raid. RAID cards using the software and CPU
Experience of using DF, DU, fdisk:linux Disk Management kickDisk is a very important resource in Linux system, how to effectively manage it directly affects the performance of the whole system. In commonly used commands, DF is used to check file
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.