Linux command – lsof

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) lsof (list open files) 主要用來查看哪些檔案被誰開啟. +d 使用參數 +d 可以查看目錄下的檔案被誰所開啟. +D 使用參數 +D 可以查看目錄下與其下的目錄檔案被誰所開啟(與 -d 的差別是,-D 含其子目錄). -u […]