紀錄工作上的點點滴滴

linux last 指令
2024-06-25 linux
統計每個 IP 地址的出現次數 last | awk '{print $3}' | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | sort | uniq -c | sort -nr last: 顯示用戶登錄的歷史記錄。 awk ... Read More
Linux 硬體檢視
2024-06-18 linux linux. 硬體
使用 lshw 工具 安裝 Debian sudo apt install lshw 檢測 CPU ❯ sudo lshw -short -class bus -class cpu H/W path Device Class Description ... Read More
Update Nvidia 470 Dirver
2024-06-11 linux Nvidia
Linux 安裝 NVidia 驅動程式 環境 OS: Debian 11 GPU: Nvidia 410 建議開機: boot 執行步驟 檢查 GPU 型號 lspci -nn | egrep -i "3d|display|vga" 00:02.0 VGA compatible ... Read More
修補 CVE-2023-48795
2024-06-06 工作雜記 CVE CVE-2023-48795
修補 CVE-2023-48795 方式 系統環境 OS: Rocky Linux 8 檢測方式 使用有風險的加密方式登入,無法登入則驗證通過 ssh ... Read More
putty 編譯安裝
2024-06-05 linux 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
Linux Cli Netstat
2024-06-03 linux Netstat
線上手冊內容 NETSTAT(8) Linux System Administrator's Manual NETSTAT(8) NAME netstat - Print network connections, routing tables, interface statistics, ... 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
中斷續傳 rsync -P --rsh=ssh jameschang@[IP]:[source-path] [gold-path] -P 顯示進度 Read More
DB2 維護相關 SQL
2024-05-13 DB2 db2
查詢目前資料庫哪些帳號 SELECT * FROM SYSIBM.SYSDBAUTH GRANTOR |GRANTEE ... Read More
網頁連線問題
2024-05-07 工作雜記
問題 You cannot visit domain.example.com right now because the website uses HSTS. 說明 該網站啟用了 HSTS(HTTP Strict Transport Security)功能, ... Read More