Find Files that are Modified Today (or Since Certain Time Ago) in Unix Finden Sie Dateien, die modifiziert Heute (oder Seit Bestimmte Time Ago) in 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. Um alle Dateien, die geändert wurde, da eine bestimmte Zeit vor (dh ein Tag, ein Tag, 24 Stunden, einer Woche und so weiter) in Unix-Umgebung, die find Befehl wird sich als nützlich. The command syntax is: Die Befehlssyntax ist:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories: Um alle Dateien geändert in den letzten 24 Stunden (letzte volle Tag) im aktuellen Verzeichnis und seine Sub-Verzeichnisse:
find . finden. -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 erzählt find Befehl aus auf die Suche nach Dateien verändert in den letzten Tag (24 Stunden). Flag -print option will cause find command to print the files’ location. Flag-Print-Option wird dazu führen, dass find Befehl aus, um die Dateien "location. -print can be replaced with -ls if you want a directory-listing-type response. -print ersetzt werden kann mit-ls wenn Sie möchten, dass ein Verzeichnis-Listing-Typ Reaktion.
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories: Um alle Dateien geändert in den letzten 24 Stunden (letzte volle Tag) in einem bestimmten Verzeichnis und seine Sub-Verzeichnisse:
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. Der Befehl ist im Grunde das gleiche mit der früheren Befehl, sondern nur, dass Sie jetzt keine Notwendigkeit, cd (Verzeichnis wechseln) in das Verzeichnis Sie suchen möchten.
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: Um alle Dateien mit regelmäßigen Dateitypen nur, und geändert in den letzten 24 Stunden (letzte volle Tag) im aktuellen Verzeichnis und seine Sub-Verzeichnisse:
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: Um alle Dateien, die geändert werden heute nur noch (seit Beginn der Tag nur, dh 12 Uhr), im aktuellen Verzeichnis und seine Sub-Verzeichnisse:
touch -t `date +%m%d0000` /tmp/$$ Touch-t `date +% m% d0000` / tmp / $ $
find /tmefndr/oravl01 -type f -newer /tmp/$$ find / tmefndr/oravl01-type f-neueren / 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. Der erste Befehl kann geändert werden, um anderen Datum und Uhrzeit, so dass die Kommandos werden alle Dateien, die sich geändert haben, da insbesondere, dass Datum und Uhrzeit.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine übersetzt, die Seite wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung Mai nur schwer zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe bei My Digital Life Forums My Digital Life Foren .
Related Articles Verwandte Artikel
- How to Turn Off and Skip MSN/Windows Live Hotmail Today News Direct to Inbox Wie zu deaktivieren und überspringen MSN / Windows Live Hotmail-heute-News direkt in den Posteingang
- Change Group Ownership of Symbolic Links in Unix or Linux Change Group Eigentum der symbolische Links in Unix-oder Linux -
- Shadow Copy and Salvage Previous Versions of Files in Windows 2000/XP/Vista with FileHamster Shadow Copy und Bergung Vorherige Versionen von Dateien in Windows 2000/XP/Vista mit FileHamster
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto Shutdown und Neustart des Apache httpd-Service-Daemon auf voreingestellten Zeit
- Configure, Change or Set OpenOffice.org to Default Save Files in Microsoft Office Formats Konfigurieren, ändern oder Set OpenOffice.org auf die Standardwerte speichern Dateien in Microsoft Office-Formate
- Refresh Linux or Unix Path Environmental Variables with rehash Refresh Linux-oder Unix-Pfad Umgebungsvariablen mit rehash
- Battery Pack Pro Reviews Battery Pack Pro Bewertungen
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer Upload (MPUT) und Download (MGET) Mehrere Dateien automatisch in FTP-Transfer
- Reset the Root Password of MySQL Server Setzen Sie das root-Passwort des MySQL-Servers
- Vista Previous Versions (Shadow Copy) vs Recycle Bin Vista früheren Versionen (Shadow Copy) vs Papierkorb

































August 4th, 2007 08:59 4. August 2007 08:59
Great Thnks! Thnks Sehr Gut!
May 7th, 2008 15:35 7. Mai, 2008 15:35
Very good article, thanx! Sehr gute Artikel, Danke!
June 30th, 2008 11:46 30. Juni 2008 11:46
[...] References: [...] Referenzen: 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 .. . [...]
October 1st, 2008 04:19 1. Oktober 2008 04:19
[...] be useful when I’m syncing files from our dev server to our production server. [...] Nützlich sein, wenn ich die Synchronisierung von Dateien aus unserer dev-Server für unsere Produktion Server. And thanks to this post I’ve finally found [...] Und dank diesem Beitrag habe ich endlich gefunden [...]