by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

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

Tags: linux cli

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux,system,config

Fix the problem that CentOS6.x can no longer be updated

There may still be some old programs in some places, which can only run the old system. But you want to be able to execute and install some desired packages, you may try this method. Please note that if this system is important to you, please evaluate it yourself. It is recommended that you have a Docker environment and have a backup image before trying it.

linux

The error code returned by rsync

All rsync error codes are listed here, so in scheduling, we can understand the reason for the failure.

linux

ubuntu cannot find add-apt-repository command

ubuntu cannot find add-apt-repository command