命令集合
后续会完善更新.
wget下载命令
wget http://www.baidu.com
telnet 查看端口是否开启
telnet http://127.0.0.1 8080
mv 重命名操作
mv file newFile
查看端口状态/根据pid 查看端口号
netstat -nap | grep 9092
查看jvm各代大小占用率
jstat -gcutil 6254 1000
查看前20行存活对象
jmap -histo:live 7810 | head -20
curl命令带header请求
curl -X GET "http://dev:9898/hjm_order_war/goods/product/id/list?course_id=123" -H "accept: */*"
curl命令post请求json
curl -X POST "http://10.10.82.156:7001/wechat/message/send" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"openid\": \"oNitNxA9hPJptUzBUzDCEZBIfdrc\", \"channel\": \"official\", \"message\": \"消息\",\"timestamp\": \"1555472063\",\"hash\": \"056dbd082fc11b32af43b7ac7edbaf67\"}"
curl命令post传参
curl -X POST "http://10.10.82.156:7001/wechat/message/send" -H "accept: */*" -d "title=comewords&content=articleContent"
原文链接:linux常用命令,转载请注明来源!