Find Files that are Modified Today (or Since Certain Time Ago) in Unix Trova i file che vengono modificati Oggi (o, poiché alcune tempo fa) 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. Per trovare tutti i file che è stato modificato dopo un determinato periodo di tempo fa (vale a dire un'ora fa, un giorno fa, 24 ore fa, una settimana fa e così via) in ambiente Unix, il comando Trova entrano a portata di mano. The command syntax is: La sintassi del comando è:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories: Per trovare tutti i file modificati nelle ultime 24 ore (giornata intera) nella directory corrente e dei suoi sotto-directory:
find . trovare. -mtime -1 -print - mtime -1-stampa
Flag -mtime -1 option tells find command to look for files modified in the last day (24 hours). Flag-mtime -1 opzione racconta comando find per cercare i file modificati negli ultimi giorni (24 ore). Flag -print option will cause find command to print the files’ location. Flag-stampa opzione farà trovare comando per stampare il file '. -print can be replaced with -ls if you want a directory-listing-type response. - stampa può essere sostituito con ls-se si desidera una directory-lista-tipo di risposta.
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories: Per trovare tutti i file modificati nelle ultime 24 ore (giornata intera) in una particolare directory specifica e dei suoi sotto-directory:
find /directory_path -mtime -1 -print find / directory_path-mtime -1-stampa
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. Il comando è sostanzialmente lo stesso con il comando precedente, solo che ora è alcuna necessità di cd (cambia directory) nella directory che si desidera effettuare la ricerca.
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: Per trovare tutti i file con regolare solo i tipi di file, e modificato nel corso delle ultime 24 ore (giornata intera) nella directory corrente e dei suoi sotto-directory:
find /directory_path -type f -mtime -1 -print find / directory_path-type f-mtime -1-stampa
To find all files that are modified today only (since start of day only, ie 12 am), in current directory and its sub-directories: Per trovare tutti i file che vengono modificati solo oggi (dal inizio del giorno soltanto, vale a dire alle ore 12), nella directory corrente e dei suoi sotto-directory:
touch -t `date +%m%d0000` /tmp/$$ touch-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. Il primo comando può essere modificata per specificare altri data e ora, in modo che i comandi verranno restituiti tutti i file che sono cambiato da quando quella particolare data e ora.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale inglese whenever possible. quando possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .
Related Articles Articoli correlati
- How to Turn Off and Skip MSN/Windows Live Hotmail Today News Direct to Inbox Come Spegnere e saltare MSN / Windows Live hotmail oggi Notizie diretto in Posta in arrivo
- Change Group Ownership of Symbolic Links in Unix or Linux Cambia la proprietà del gruppo link simbolici in Unix o Linux
- Shadow Copy and Salvage Previous Versions of Files in Windows 2000/XP/Vista with FileHamster Copia e ombra di salvataggio le versioni precedenti di file in Windows 2000/XP/Vista con FileHamster
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time L'arresto auto e riavviare Apache httpd daemon di servizio a tempo preimpostato
- Refresh Linux or Unix Path Environmental Variables with rehash Aggiorna Linux o Unix Percorso Ambientale variabili con rehash
- Battery Pack Pro Reviews Battery Pack Pro Recensioni
- Configure, Change or Set OpenOffice.org to Default Save Files in Microsoft Office Formats Configurare, modificare o impostare OpenOffice.org per impostazione predefinita salvare i file in formati di Microsoft Office
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer Carica (mput) e Download (mget) più automaticamente i file in trasferimento FTP
- Vista Previous Versions (Shadow Copy) vs Recycle Bin Vista le versioni precedenti (Copia Shadow) vs Cestino
- Display and View FireFox Cache Files Without Browser Cache Viewer Visualizzazione e visualizzare file di cache firefox cache del browser senza visualizzatore

































August 4th, 2007 08:59 Ago 4, 2007 08:59
Great Thnks! Thnks grande!
May 7th, 2008 15:35 7 maggio 2008 15:35
Very good article, thanx! Ottimo articolo, thanx!
June 30th, 2008 11:46 30 giugno 2008 11:46
[...] References: [...] Riferimenti: 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 .. . [...]