Linux
影片
Jserv
Jserv 筆記
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 源碼閱讀順序推薦
- documentation : 門檻高,要先知道一些關鍵字會比較好 ex: networking, spinlock…
- include : 123
交大開放課程
指令
sed
tar 壓縮相關
- 壓縮
- tar -zcvf RESULTFILE.tar.gz file1.exe file2.txt dir1/ dir2/ …
- 解壓縮
- tar -zxvf WANTUNZIPFILE.tar.gz -C /DESTINATION…
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 影片
vim
grep
awk
wc
pkill
- Linux系统下强制踢掉登录用户
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
fail2ban
手動 ban 特定 IP
取得 fail2ban ban 掉的不重複 IP 數量
- grep -o "regex" : 只列出匹配的結果
- 排序
- 去重 : 只會去相鄰的
綜合使用
取得出現次數前 10 的 IP
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
尚未知曉的指令紀錄
- ping -c1 8.8.8.8
- ping -c1 8.8.8.8 &>/dev/null
- ping 一次 8.8.8.8 且將動作返回的訊息丟棄
- ping -c1 8.8.8.8 && echo "up" || echo "down"
- ping 一次 8.8.8.8 並對動作結果的成功與否做判斷
- 做完一個動作之後會由 $? 來判斷成功與否
- 當 $? == 0 ,代表動作成功,會執行 && 後的動作
- 當 $? != 0 ,代表動作失敗,會執行 || 後的動作
cron & crontab
sudo cron start
- 這個沒開的話 crontab 設定的動作也不會執行
crontab -e
- declare 指令可以用來宣告變數
- 也可以用來依不同的選項來顯示指定類型的環境變數
- 如果不給任何的選項給 declare 指令的話,效果就和直接執行 set 指令相同
- 而只想看環境變數,不想看到函式的話,那就用下面這一行的指令來查就可以了。
開源專案相關
國立清華大學開放式課程
周志遠作業系統
中正大學作業系統
快速起一個 laravel 專案的 shell
千鋒 linux shell 入門
linux 介面顏色修改
講解 linux 如何入門的文章