search
Homephp教程PHP开发How to find recently modified files in Linux

How to find recently modified files in Linux

Nov 07, 2016 am 10:34 AM
find commandlinuxlinux command

How to find recently modified files in Linux


If there is any problem with the website or server, the first thing you will think about is whether the files on the server have been modified, and the find command will be used to search, as follows :

Search the .php files in the current directory for files that have been modified in the last 30 minutes.

find . -name ‘*.php’ -type f -mmin -30
Find the details of files modified in the last 30 minutes in the .html file in the current directory.

find . -name ‘*.html’ -type f -mmin -30 -ls
Find regular files in the current directory that have been modified in the last day.

find . -type f -mtime -1

Find regular files in the current directory that were modified last 1 day ago (within 2 days).

find . -type f -mtime +1

If you want to find modifications to the files in the /home directory, just cd /home and then run the search, so that if you encounter a problem, it will be easy to troubleshoot the problem.


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools