linux

获取目录中最大的前10个文件

ls -lhS | head -11

 

du -ah | sort -hr | head -11

du -sh ./* | sort -hr | head -11

 

ctrl + a /* 光标跳到命令行的开头*/

ctrl + e /* 光标跳到命令行的结尾 */

 

在Linux操作系统中,可以使用lsof命令查看某个进程打开的文件句柄数量。格式如下:

lsof -p <进程ID> | wc -l

  

 

sudo cat /proc/10447/limits

ls /proc/12345/fd | wc -l
cat /proc/sys/fs/nr_open

 

posted @ 2023-03-13 14:02  CeasonCing  阅读(8)  评论(0编辑  收藏  举报