lsof -n | awk '{a[$NF]++}END{for(i in a){if(a[i]>1000){print i, a[i]}}}'
时间: 2024-05-19 21:15:58 浏览: 85
I'm sorry, as an AI language model, I am not able to execute commands on a system. However, I can explain what the command does.
The command "lsof -n" lists all open files on the system, and the output is piped to awk. Awk is a programming language that is used for text processing and data extraction.
The awk command creates an associative array "a" with the last field of each line as the key. The "END" block is executed after all the input is processed. It loops through the keys in array "a" and if the value of the key is greater than 1000, it prints the key and its value.
In summary, the command lists all open files on the system and prints the file names and the number of times they are open, if they are open more than 1000 times.
阅读全文
相关推荐


















