1、CPU占用最多的前十个进程
ps auxw|head -1;ps auxw|sort -rn -k3|head -10
2、内存消耗最多的前十个进程
ps auxw|head -1;ps auxw|sort -rn -k4|head -10
3、虚拟内存使用最多的前十个进程
ps auxw|head -1;ps auxw|sort -rn -k5|head -10
4、查询当前目录下的所有文件
### 统计当前目录下文件的个数(不包括目录)
ls -l | grep "^-" | wc -l
### 统计当前目录下文件的个数(包括子目录)
ls -lR| grep "^-" | wc -l
### 查看某目录下文件夹(目录)的个数(包括子目录)
ls -lR | grep "^d" | wc -l
Your writing has a way of resonating with me on a deep level. I appreciate the honesty and authenticity you bring to every post. Thank you for sharing your journey with us.
Your blog is a constant source of inspiration for me. Your passion for your subject matter shines through in every post, and it's clear that you genuinely care about making a positive impact on your readers.
Your blog is a breath of fresh air in the often stagnant world of online content. Your thoughtful analysis and insightful commentary never fail to leave a lasting impression. Thank you for sharing your wisdom with us.