紀錄工作上的點點滴滴

telnet 替代方案: curl

2024-10-30 工作雜記 linux curl telnet

過去在偵測網路 port 可連接的狀況,會使用 telnet 這個指令測,但是新版的作業系統已經預設已經沒有安裝了。 現在的替代方案是 curl 指令,此方法在 windows 10 環境也適用 curl telnet://[IP]:[port] 讓我們來看一下差別,以下是 telnet ... Read More

硬體設備-hba

2024-10-30 工作雜記 linux multipath

最近工作中遇到需要設定光纖設備,這邊我稍微紀錄一下過往常用的指令 查詢 hba 型號: `` [root@test-host ~]# lspci -nn |egrep -i "fibre|hba" 17:00.0 Fibre Channel [0c04]: QLogic Corp. ... Read More

AI幻覺導致我操作系統錯誤了

2024-10-13 工作雜記 linux

TL;DR 剛剛在練習 KVM 指令時 一些不懂的地方直接問 Cheap GPT 遇到 AI 幻覺。在執行虛擬磁碟擴容到 60G 照著 GPT 指示做,結果擴充到 30TB。好險是在實驗室進行操作練習,如果是在正式環境可能或造成難以收復的系統災難。 錯誤指令如下 sudo virsh ... Read More

docker overlay2

2024-07-19 工作雜記 linux docer

經驗分享 linux /var/lib/docker/overlay2 這層目錄不能亂刪 刪了 本機的 docker image 通通不見 服務會瞬間死光光 以下是誤刪的解決方式 重啟 docker sudo systemctl restart docker 清除docker資源 docker ... Read More

尋找作業系統帳號建立日期

2024-07-17 工作雜記 linux weindows

weindows Write-Output "User,Birth" # 取得所有用戶名和主目錄路徑 $users = Get-WmiObject Win32_UserAccount | Where-Object { $_.LocalAccount -eq $true -and ... Read More

故障排除: Linux 連接 windows AD

2024-07-08 工作雜記 linux windows ad

環境 AD server: windows server 2022 Client server: Oracle Linux 9 症狀: 無法抓取 AD 新資訊 [root@client-server ~]# id testacconut id: ‘testacconut’: no such user ... Read More

設定 Linux 檔案瀏覽器 Files 預設的 Columns

2024-07-01 linux linux GNOME

使用以下命令來查看當前設置: gsettings get org.gnome.nautilus.list-view default-visible-columns 設置你想要的欄位,例如: gsettings set org.gnome.nautilus.list-view ... 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

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