by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 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

Load the environment variables of .env to the system

Load the environment variables of .env to the system

linux,system

Detect whether selinux is enabled in the system

Detect whether selinux is enabled in the system

linux,docker

How to execute X client and X Window in Container (docker gui)

Today I will talk to you about X, not iPhone X, nor X-Men, but X Window System, He is the main graphical interface display component of the current Linux system. Since it is very easy to expand and modularize, it has been used since it was established in 1986. The X Window system adopts the Client/Server architecture, which splits the application program and the display into two. The application program of X Windows is usually called X Client, and the display is the well-known X Server. The X client communicates with the X server through the X protocol (X protocol), which is an asynchronous network communication protocol.