Linux常用命令笔记总结(待补充)

问题实际场景:遇到告警磁盘利用率不足,检查根目录下各文件大小

Linux查看磁盘利用率

df –h 查找磁盘占用情况

find / -size +100M 从根目录往下找大于100M大小的文件

du -h --max-depth=1 /home/ 列出 /home文件夹下的文件输出文件的大小,跟 ls 命令类似

du -sh *

 

url请求

time curl -X POST "http://localhost:8035/pl/fee/year" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"dataTargets\": [ \"1\" ], \"dates\": [ \"2019\" ], \"deptCodePath\": \"B001\", \"deptLeafTag\": 0, \"feeCodePaths\": [ \"H02>EXPALL>EXP14\", \"H02>EXPALL>EXP12\" ], \"feeLeafTags\": [ \"0\",\"0\" ], \"feeNames\": [ \"组织费用\",\"订单相关费用\" ], \"feeType\": 0, \"moduleId\": 6, \"periodNameYear\": \"2019\"}"

time curl -X GET "http://localhost:8035/pl/fee/getDeptTree?moduleId=6&periodNameYear=2019" -H "accept: */*"

 

切换临时Root权限

sudo -i

sh restart.sh

 

posted @ 2019-01-08 11:15  JackLU刘先生  阅读(235)  评论(0编辑  收藏  举报