摘要: 1.du -s /usr/* | sort -rn 这是按字节排序 2.du -sh /usr/* | sort -rn -h 参数排序顺序会乱 这是按兆(M)来排序 3.选出排在前面的10个 du -s /usr/* | sort -rn | head 4.选出排在后面的10个 du -s /us 阅读全文
posted @ 2021-07-08 22:24 B_en′Pǎo 阅读(431) 评论(0) 推荐(0)
摘要: Linux系统下的日志分割工具,Split 和 Logrotate split 选项含义 -b 分割后的文档大小,单位是byte -C 分割后的文档,单行最大byte数 -d 使用数字作为后缀(default: 字母),同时使用-a length(default: 2)指定后缀长度 -l 分割后文档 阅读全文
posted @ 2021-07-08 22:08 B_en′Pǎo 阅读(189) 评论(0) 推荐(0)
摘要: 1.语句写法: find 对应目录 -mtime +天数 -name "文件名" -exec rm -rf {} \; 在/logs目录中查找更改时间在7日以前的文件并删除它们: $ find logs/ -type f -mtime +7 -exec rm -f {} \; 在/logs目录中查找 阅读全文
posted @ 2021-07-08 21:54 B_en′Pǎo 阅读(1005) 评论(0) 推荐(0)
摘要: remote rm SpringBootDemo 删除 git config --global user.name "Administrator" git config --global user.email "admin@example.com" git init git remote add o 阅读全文
posted @ 2021-07-02 11:59 B_en′Pǎo 阅读(17) 评论(0) 推荐(0)
摘要: $ kubectl api-resources | grep deployment deployments deploy apps true Deployment This means that only apiVersion with apps is correct for Deployments 阅读全文
posted @ 2021-06-24 09:31 B_en′Pǎo 阅读(1486) 评论(0) 推荐(1)