紀錄工作上的點點滴滴

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

putty 編譯安裝

2024-06-05 linux linux putty

編譯安裝 下載 putty wget https://the.earth.li/~sgtatham/putty/latest/putty-0.83.tar.gz tar -zxf putty-0.83.tar.gz cd putty-0.83 建立 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

一到指令刪除相關進程

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

KDE 桌面 CLI

2024-04-09 linux KDE

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

Linux 發行板核心版本整理

2024-03-09 linux Linux Kernel rhel_3 rhel_4 rhel_5 rhel_6 rhel_7 rhel_8 Debian Oracle Linux Rocky Linux

前幾天在工作中因為要導入GBC,但是在客戶的系統當中有非RedHat衍生發行板的系統,所以想說用相近的 Linux Kernel 作為導入的基礎,在這邊把整好的核心版本整理一下 Linux 發行板 Kernel Version Rocky Linux 8 4.18.0 Rocky Linux 9 ... Read More