CentOS 命令【备忘】
生活随笔
收集整理的這篇文章主要介紹了
CentOS 命令【备忘】
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
1、查看物理cpu個數(shù)
grep 'physical id' /proc/cpuinfo | sort -u | wc -l
2、查看核心數(shù)量
grep 'core id' /proc/cpuinfo | sort -u | wc -l
3、查看目錄大小
du -hs /usr/local/openresty
4、查看目錄下級各目錄大小
du -h --max-depth=1 /usr/local/openresty/
du -h --max-depth=1 /usr/local/openresty/*
5、查看mysql進(jìn)程
ps aux | grep mysql
?
轉(zhuǎn)載于:https://www.cnblogs.com/kgdxpr/p/4096411.html
總結(jié)
以上是生活随笔為你收集整理的CentOS 命令【备忘】的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux 技巧:让进程在后台可靠运行的
- 下一篇: 【转】Android的线程使用来更新UI