1.压缩命令
压缩文件xxx到xxx.zip zip xxx.zip xxx
压缩文件夹xxx到xxx.zip zip -r xxx.zip xxx
压缩当前目录下所有文件到xxx.zip zip -r xxx.zip ./*
2.curl
发送get请求
curl http://127.0.0.1:8088/aaos/stateQuery.do
curl http://localhost:9960/data/support?path=D:/tmp/desc1/20200723.txt
发送post请求
curl -d "user=admin&passwd=12345678" https://proxy.mimvp.com/ip.php
curl -H "Content-Type:application/json" -X POST -d '{"sysHeader":{"orgCode":"BBWB"},"busiData":{"applyBarcode":"R01078900040307007"}}' http://127.0.0.1:8088/aaos/stateQuery.do
curl -H "Content-Type:application/json" -X POST -d '{"sysHeader":{"orgCode":"BBWB"},"busiData":{"applyBarcode":"R01078900040307007"}}' 'http://127.0.0.1:8088/aaos/stateQuery.do'
请求路径加不加单引号都行
3.less命令查看日志
shift + g 定位到底部
shift + G 定位到顶部
/keyword 向下查找
n 向下匹配下一处匹配文本
N 向上匹配下一处匹配文本
?keyword 向上查找
n 向上匹配下一处匹配文本
N 向下匹配下一处匹配文本
F 实时滚动文档
Ctrl + c 退出实时滚动模式
类似效果:
tail -f catalina.out
4.文件命令
du -sh 查看当前目录容量大小
du -sh * 查看当前目录所有文件容量大小详情
df -h 查看文件磁盘容量