在Debian中,可結合find
和strings
命令查找隱藏文件中的字符串,步驟如下:
cd
命令導航到目標目錄,如cd /home/user
。find . -type f -name ".*" -exec strings {} \;
,可提取當前目錄及子目錄中所有隱藏文件的可打印字符串。find . -type f -name ".*" -exec strings {} \; > output.txt
。grep
,如find . -type f -name ".*" -exec strings {} \; | grep -i "特定字符串"
。