Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common commands of Linux?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you what are the common commands of Linux, the content is very detailed, interested friends can refer to, hope to be helpful to you.

-- View directory usage

Df-h

-- View the partition table

Fdisk-l (fdisk is a disk partition command)

-- View the amount of space occupied by a directory

Du-hs / home/oracle

-- check the disk IO

Iostat-d-x-K iostat M 1 10 or iostat-dxk/dxm 1 10 (parameter-d indicates that the device (disk) is in use. -KUBUPUM indicates that it is represented by KB/MB; 1 / 10 means that the data display is refreshed every 1 second for a total of 10 times. This part of the information is extracted from https://blog.csdn.net/liuxiao723846/article/details/79939697, intruded and deleted)

Avgqu-sz is the average length of the request queue. There is no doubt that the shorter the queue, the better.

Await: the average processing time (in microseconds and milliseconds) of each IO request. It can be understood as the response time of IO. Generally speaking, the response time of system IO should be lower than that of 5ms, and it is larger if it is greater than 10ms. This time includes queue time and service time, that is to say, in general, await is greater than svctm, and the smaller the difference between them, the shorter the queue time, and the greater the reverse difference, the longer the queue time, indicating that there is something wrong with the system.

Svctm represents the average service time (in milliseconds) for each device Istroke O operation. If the value of svctm is very close to that of await, it means that there is almost no Imax O waiting, and the disk performance is good. If the value of await is much higher than the value of svctm, it means that the queue wait of Imax O is too long, and the applications running on the system will be slower.

% util: all processing IO times during the statistical time divided by the total statistical time. For example, if the statistical interval is 1 second, the device has 0.8 seconds of processing IO and 0.2 seconds of idle, then the% util of the device = 0.8 shock 1 = 80%, so this parameter indicates how busy the device is. In general, if this parameter is 100%, it means that the device is running at nearly full capacity (of course, if it is multiple disks, even if the% util is 100%, because of the concurrency of disks, disk usage may not be a bottleneck)

-- View port occupancy

Netstat-tunlp | grep port number (- t shows tcp related,-u shows udp related,-l lists the service status of listen,-p shows relevant program name)

The common commands about Linux are shared here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report