虽说是常用命令,但是一些过于简单的就不收录了
一、查看大文件
find / -size +1000M -exec ls -lh {} \;
二、同步时间
ntpdate 0.asia.pool.ntp.org
若上面的时间服务器不可用,也可以选择以下服务器同步时间
time.nist.gov
time.nuri.net
0.asia.pool.ntp.org
1.asia.pool.ntp.org
2.asia.pool.ntp.org
三、查看资源占用
1.整体
top
2 .内存占用
free
3.内存前5
ps auxw | head -1;ps auxw|sort -rn -k4|head -5
4.pid找进程
ps -aux |grep -v grep|grep xxxxxxxx