建立於: 8年前 ( 更新: 8年前 )
以下的指令,在Linux及MacOS都是通用的
find . -type f -mtime -7 -name "*.php"
| 參數 | 說明 |
|---|---|
| . | 目前的目錄下開始找,包含了子目錄。 |
| -type f | f 代表類型為檔案,d 代表類型為目錄 |
| -mtime -7 | -7(負七) 代表7天內變動過的檔案。 |
| -name "*.php" | 只找副檔名為php的檔案 |
以下的指令,在Linux及MacOS都是通用的
find . -type f -mtime -7 -name "*.php"
| 參數 | 說明 |
|---|---|
| . | 目前的目錄下開始找,包含了子目錄。 |
| -type f | f 代表類型為檔案,d 代表類型為目錄 |
| -mtime -7 | -7(負七) 代表7天內變動過的檔案。 |
| -name "*.php" | 只找副檔名為php的檔案 |
No Comment
Post your comment