03 2024 档案
摘要:文件按照大小排序 OS:Red Hat Enterprise Linux Server release 7.9 (Maipo) 用的时候,经常盘就满了,得找最大的那个表,到数据库里面去查还得写sql ,就干脆查文件就得了,以下是用了个空库的查询结果 通过 ll 排序,对文件夹不够友好 desc 排序
阅读全文
摘要:too many files open in system 查看哪个用户或进程占用的文件多 #查看进程打开文件数最多的前5个进程 lsof | awk '{print $2}' | sort | uniq -c | sort -rn | head -n 5 lsof -n| awk '{print
阅读全文