The following commands are common to both Linux and MacOS
find . -type f -mtime -7 -name "*.php"
| parameter | illustrate |
|---|---|
| . | Start searching under the current directory, including subdirectories. |
| -type f | f means the type is file, d means the type is directory |
| -mtime -7 | -7 (minus seven) represents files that have changed within 7 days. |
| -name "*.php" | Only find files with the extension php |
No Comment
Post your comment