紀錄工作上的點點滴滴

putty 編譯安裝

2024-06-05 工作雜記 linux putty

編譯安裝 下載 putty wget https://the.earth.li/~sgtatham/putty/latest/putty-0.81.tar.gz tar -zxf putty-0.81.tar.gz cd putty-0.81 建立 catch cmake . ❯ cmake . ... Read More

nginx ssl 設定步驟

2024-05-29 工作雜記 linux

檢查本機的OpenSSL支援加密協定 openssl ciphers -v | grep TLS ❯ openssl ciphers -v | grep TLS TLS_AES_256_GCM_SHA384 TLSv1.3 Kx=any Au=any Enc=AESGCM(256) Mac=AEAD ... Read More

linux CLI rsync

2024-05-18 工作雜記 linux

中斷續傳 rsync -P --rsh=ssh jameschang@[IP]:[source-path] [gold-path] -P 顯示進度 Read More

一到指令刪除相關進程

2024-04-27 工作雜記 linux

查詢 java 所有的進程 ❯ top -b -n 1 | grep java | cut -c 1-7 8190 15263 15512 16641 17148 假設我要刪除 java 全部的進程可以這樣處理 ❯ top -b -n 1 | grep java | cut -c 1-7 | ... Read More

CLI 檢查網站憑證

2024-04-26 工作雜記 linux

curl curl https://www.google.com -v -k 2>&1 | grep -E "Connected to|subject|expire" 執行結果 ❯ curl https://www.google.com -v -k ... Read More

linux 資料基礎分析

2024-04-25 工作雜記 linux 資料分析

grep: 過濾資料 grep 要過濾出的資料 exampleFileSource.log > exampleFile.log cut 切除每行前 60 個字元 cut -b 60- exampleFile.log > exampleFile.2.log sort: 類似 sql ... Read More

KDE 桌面 CLI

2024-04-09 工作雜記 Linux KDE

KED 強制登出使用者 sudo pkill -KILL -u [username]] 是直接強制踢出指定使用者所有程序 Read More

html轉pdf-wkhtmltopdf

2024-02-28 工作雜記 Linux

官方網站-wkhtmltopdf 安裝檔 wkhtmltox_0.12.6.1-2.bullseye_amd64.deb CLI wkhtmltopdf 附件二-OS-作業系統日誌-差異備份-20231026_tmp.html 附件二-OS-作業系統日誌-差異備份-20231026.pdf Read More

Linux 係統時間

2024-02-28 工作雜記 Linux

sudo date -s "2022/05/05 18:44:15" 若要查詢硬體時鐘(RTC)的時間,可以使用 hwclock: 若要將係統時間寫入硬體時鐘,可以使用 -w 參數: sudo hwclock -w 係統時區校正 先設定時區 sudo timedatectl ... Read More

Linux 壓縮相關

2024-02-28 工作雜記 Linux

7z 安裝 sudo apt-get install p7zip-full p7zip-rar 解壓縮到指定輸出目錄 7z x "dir1.zip" -o "dir1" zip 安裝 apt install zip unzip 解壓縮到指定輸出目錄 unzip -q ... Read More