好记性,不如烂笔头
查询
找到 IO 占用高的进程,每 2 秒更新一次
1  | pidstat -d 2  | 
当前目录下,文件夹大小。扫描深度 1
1  | du -lh --max-depth=1  | 
当前目录,文件夹大小
1  | du -sh  | 
文件操作
对比文件夹
1  | diff -qr dir1/ dir2/  | 
复制文件夹
1  | cp -r dir-from/ dir-target/  | 
Nginx
测试配置成功后重启
1  | sudo nginx -t && sudo /etc/init.d/nginx restart  | 
vim
清空所有文件内容
1  | :%d  | 
ntp
如果您使用的是systemd-timesyncd(Ubuntu 默认)
1  | sudo vim /etc/systemd/timesyncd.conf  | 
腾讯云-公网
1  | NTP=ntp.tencent.com ntp2.tencent.com ntp3.tencent.com ntp4.tencent.com ntp5.tencent.com  | 
腾讯云-内网
1  | NTP=time1.tencent.com time2.tencent.com time3.tencent.com time4.tencent.com time5.tencent.com  | 
阿里云
1  | NTP=ntp1.aliyun.com ntp2.aliyun.com ntp3.aliyun.com ntp2.aliyun.com ntp3.aliyun.com  |