Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
Linux tips: trovare i file modificati oggi tramite terminale

Comando da utilizzare su linux tramite terminale per cercare gli ultimi file modificati oggi o negli ultimi giorni

Per cercare tutti i file modificati nelle ultime 24 ore in una determinata directory su linux è molto semplice.

Basta entrare nella cartella in cui vogliamo fare la ricerca ed usare il comando find:

find . -type f -mtime -1

l’opzione in line -mtime gestisce il numero di giorni su cui basare la ricerca. Ad esempio impostando -mtime 4, cercheremo tutti i file modificati negli ultimi 4 giorni.

Impostando invece -type d invece che -type f, cercheremo le directory piuttosto che i files

E’ possibile anche trovare i file modificati oggi o negli ultimi giorni di un determinato tipo aggiungendo -name. Ad esempio per cercare i file .php

find . -type f -name "*.php" -mtime -1