Dabao's Tech Blog
Archives
Label
About
GitHub
Facebook

[ Linux ] 實用指令紀錄 - find

logo

find,一般linux user很常用到的指令之一,如同它的英文一樣,可以用來找檔案名稱或是內容。

find 指令結構

find [目錄] [參數]

以上只是搜尋,接下來下面要介紹的是進階用法,適合拿來做排程、執行 ↓

 find -name "*.php" | exec grep -H "phpinfo" {} \;