Find Files that are Modified Today (or Since Certain Time Ago) in Unix Trouver les fichiers qui sont modifiés Aujourd'hui (ou depuis certains temps auparavant) sur Unix
To find all files that was modified since a specific time ago (ie an hour ago, a day ago, 24 hours ago, a weeks ago and so on) in Unix environment, the find command will come in handy. Pour trouver tous les fichiers qui a été modifiée depuis un moment, il ya (c'est-à-dire il ya une heure, un jour, 24 heures, une semaines et ainsi de suite) en environnement Unix, la commande find vous sera utile. The command syntax is: La syntaxe de commande est:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories: Pour trouver tous les fichiers modifiés dans les dernières 24 heures (dernière journée) du répertoire courant et ses sous-répertoires:
find . rechercher. -mtime -1 -print - mtime -1-print
Flag -mtime -1 option tells find command to look for files modified in the last day (24 hours). Flag-mtime -1 option indique à commande find pour rechercher les fichiers modifiés dans la dernière journée (24 heures). Flag -print option will cause find command to print the files’ location. Flag-option d'impression provoquera commande find pour imprimer les fichiers' emplacement. -print can be replaced with -ls if you want a directory-listing-type response. - print peut être remplacé par-ls si vous voulez un répertoire la liste-type de réponse.
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories: Pour trouver tous les fichiers modifiés dans les dernières 24 heures (dernière journée) dans un répertoire et ses sous-répertoires:
find /directory_path -mtime -1 -print find / directory_path-mtime -1-print
The command is basically the same with the earlier command, just that now you no need to cd (change directory) to the directory you want to search. La commande est essentiellement la même chose avec la première commande, il suffit maintenant que vous n'avez besoin de cd (changer de répertoire) dans le répertoire que vous souhaitez rechercher.
To find all files with regular file types only, and modified in the last 24 hours (last full day) in current directory and its sub-directories: Pour trouver tous les fichiers réguliers avec les types de fichiers uniquement, en les modifiant, dans les dernières 24 heures (dernière journée) du répertoire courant et ses sous-répertoires:
find /directory_path -type f -mtime -1 -print find / directory_path-type f-mtime -1-print
To find all files that are modified today only (since start of day only, ie 12 am), in current directory and its sub-directories: Pour trouver tous les fichiers qui sont modifiés aujourd'hui seulement (depuis le début de la journée seulement, c'est-à-dire 12 heures), du répertoire courant et ses sous-répertoires:
touch -t `date +%m%d0000` /tmp/$$ touche-t `date +% m% d0000` / tmp / $ $
find /tmefndr/oravl01 -type f -newer /tmp/$$ find / tmefndr/oravl01-type f-newer / tmp / $ $
rm /tmp/$$ rm / tmp / $ $
The first command can be modified to specify other date and time, so that the commands will return all files that have changed since that particular date and time. La première commande peut être modifiée pour spécifier la date et l'heure, de sorte que les commandes, vous obtiendrez tous les fichiers qui ont changé depuis cette date et l'heure.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni «tel quel», sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S’il vous plaît se référer à original English article article original anglais whenever possible. chaque fois que possible.
Share and contribute or get technical support and help at Partagez et contribuer ou obtenir de l'aide technique et l'aide à My Digital Life Forums Ma vie numérique forums .
Related Articles Articles connexes
- How to Turn Off and Skip MSN/Windows Live Hotmail Today News Direct to Inbox Comment désactiver sauter et MSN / Windows Live Hotmail aujourd'hui Nouvelles direct dans la boîte de réception
- Change Group Ownership of Symbolic Links in Unix or Linux Changer de groupe propriétaire de liens symboliques sur Unix ou Linux
- Shadow Copy and Salvage Previous Versions of Files in Windows 2000/XP/Vista with FileHamster Ombre de copie et de sauvetage les versions antérieures des fichiers sous Windows 2000/XP/Vista avec FileHamster
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto Arrêt et redémarrer Apache HTTPD service démon à durée prédéfinie
- Refresh Linux or Unix Path Environmental Variables with rehash Actualiser Linux ou Unix Sentier variables d'environnement avec rehash
- Battery Pack Pro Reviews Battery Pack Pro commentaires
- Configure, Change or Set OpenOffice.org to Default Save Files in Microsoft Office Formats Configurer, changer ou un ensemble OpenOffice.org par défaut de sauvegarder des fichiers en formats Microsoft Office
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer Upload (mput) et Téléchargement (mget) automatiquement de multiples fichiers en FTP de transfert
- Vista Previous Versions (Shadow Copy) vs Recycle Bin Vista les versions précédentes (Shadow Copy) vs corbeille
- Display and View FireFox Cache Files Without Browser Cache Viewer Affichage et afficher les fichiers cache firefox sans cache du navigateur Viewer

































August 4th, 2007 08:59 4 août 2007 08:59
Great Thnks! Grande Thnks!
May 7th, 2008 15:35 7e Mai, 2008 15:35
Very good article, thanx! Très bon article, merci!
June 30th, 2008 11:46 30ème Juin, 2008 11:46
[...] References: [...] Références: http://www.mydigitallife.info/2006/01/19/find-files-that-are-modified-today-or-since-certain-time-ag.. http://www.mydigitallife.info/2006/01/19/find-files-that-are-modified-today-or-since-certain-time-ag .. . [...]