Linux常用命令
1、查询CPU
cat /proc/cpuinfo|grep "processor"|wc -l
2、free -m
cat /etc/euleros-release
3、Linux中的关键词查询
zgrep 'keyword' test.log
4、linux全局查找那个文件占用的空间大
find . -type f -size +100M -print0 | xargs -0 du -h
5、查看Linux端口是否被占用
netstat -an |grep 8888
6、Linux中测试接口
curl -v -k -X POST -H 'Content-Type: application/x-www-form-urlencoded' -H 'Host:***.cloudtest.cn' http://10.25.0.133:8000/oauth2/v2/token -d 'grant_type=client_credentials&client_id=****&client_secret=****'