close

列出所有 process 個別開啟幾個檔案

lsof -n | awk '{print $1}' | sort | uniq -c

列出所有開啟檔案數

lsof -n | wc -l

查看 Linux Kernel 設定的 Maximum Opened Files

sysctl fs.file-max

 

https://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html

arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()