1.cd 命令
cd 進入用戶主目錄;
cd ~ 進入用戶主目錄;
cd - 回傳進入此目錄之前所在的目錄;
cd .. 回傳上級目錄(若當前目錄為“/“,則執行完后還在“/";".."為上級目錄的意思);
cd ../.. 回傳上兩級目錄;
cd / 進入系統根目錄
2.locate 命令
locate luck.txt 精確查找檔案的路徑
locate -n 12 jdk -n 按個數查找的路徑
3. tail/head
tail -f catalina.out head -n 10 /etc/profile 顯示/etc/profile的前10行內容 tail -n 5 /etc/profile 顯示/etc/profile的最后5行內容 4.根據行程查詢占用的埠netstat -nap | grep 7189 5. curl GET請求
curl http://IP:Port/地址 a.帶上引數
curl http://IP:Port/地址?引數名='引數' Post請求
a.當個引數
curl -i -k -H "Content-type: application/json" -X POST -d '{"name":"abcddd"}' http://IP:Port/地址 b.多個引數
curl -i -k -H "Content-type: application/json" -X POST -d '{"uuid":"xxxx","name":"張三","start":"0","end":"10"}' http://IP:Port/地址 c.包含陣列
curl -i -k -H "Content-type: application/json" -X POST -d '{"idArrs": ["xxx1",'xxx2'],"userid": "xxxxx","pwd": "abcdefr111"}' http://IP:Port/地址 d.介面時間get
curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http://IP:Port/地址"
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/160499.html
標籤:Linux
下一篇:nginx 頁面加載不全的問題
