Find Files that are Modified Today (or Since Certain Time Ago) in Unix Encontrar arquivos que foram alterados Hoje (ou dado que alguns anos atrás) em 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. Para localizar todos os arquivos que foram modificados, uma vez que um determinado tempo atrás (ou seja, de uma hora, uma semana atrás, 24 dias atrás, uma semana atrás, e assim por diante) em ambiente Unix, o comando encontrar será útil. The command syntax is: O comando sintaxe é:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories: Para localizar todos os arquivos modificados nas últimas 24 horas (último dia inteiro) no diretório atual e seus sub-diretórios:
find . encontrar. -mtime -1 -print - mtime -1-imprimir
Flag -mtime -1 option tells find command to look for files modified in the last day (24 hours). Flag-mtime -1 opção diz a encontrar comando para procurar arquivos modificados no último dia (24 horas). Flag -print option will cause find command to print the files’ location. Bandeira de impressão de opção irá causar encontrar comando para imprimir os arquivos' local. -print can be replaced with -ls if you want a directory-listing-type response. - impressão pode ser substituído com ls-se você quiser um diretório de lista de tipo resposta.
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories: Para localizar todos os arquivos modificados nas últimas 24 horas (último dia inteiro) em um determinado diretório específico e seus sub-diretórios:
find /directory_path -mtime -1 -print find / directory_path-mtime -1-imprimir
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. O comando é basicamente o mesmo com o comando anterior, só que agora você não precisa de cd (mudar diretório) para o diretório que você deseja pesquisar.
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: Para localizar todos os arquivos com tipos de arquivo apenas regular, e modificado nas últimas 24 horas (último dia inteiro) no diretório atual e seus sub-diretórios:
find /directory_path -type f -mtime -1 -print find / directory_path-type f-mtime -1-imprimir
To find all files that are modified today only (since start of day only, ie 12 am), in current directory and its sub-directories: Para localizar todos os arquivos que são modificados só hoje (desde o início do dia só, ou seja, 12 horas), no diretório atual e seus sub-diretórios:
touch -t `date +%m%d0000` /tmp/$$ touch-t `date +% m% d0000` / tmp / $ $
find /tmefndr/oravl01 -type f -newer /tmp/$$ find /-type f-tmefndr/oravl01 mais recente / 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. O primeiro comando pode ser modificado para especificar outra data e hora, de modo a que os comandos irá retornar todos os arquivos que mudaram desde que a data e hora específica.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- How to Turn Off and Skip MSN/Windows Live Hotmail Today News Direct to Inbox Como desativar o recurso de pular e MSN / Windows Live Hotmail hoje notícias direto para a Caixa de Entrada
- Change Group Ownership of Symbolic Links in Unix or Linux Mudar Grupo de propriedade links simbólicos em Unix ou Linux
- Shadow Copy and Salvage Previous Versions of Files in Windows 2000/XP/Vista with FileHamster Shadow Copy e Salvação versões anteriores de arquivos no Windows 2000/XP com FileHamster
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Auto shutdown e reiniciar o Apache httpd serviço daemon a hora predefinida
- Refresh Linux or Unix Path Environmental Variables with rehash Atualizar Linux ou Unix Caminho variáveis ambientais com rehash
- Battery Pack Pro Reviews Battery Pack Pro opiniões
- Configure, Change or Set OpenOffice.org to Default Save Files in Microsoft Office Formats Configurar, alterar ou definir OpenOffice.org default para salvar arquivos em formatos Microsoft Office
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer Upload (mput) e Download (mget) vários arquivos automaticamente no FTP Transfer
- Vista Previous Versions (Shadow Copy) vs Recycle Bin Vista versões anteriores (Shadow Copy) vs lixeira
- Display and View FireFox Cache Files Without Browser Cache Viewer Exibir e visualizar arquivos sem navegador FireFox cache Cache Viewer

































August 4th, 2007 08:59 4 de agosto de 2007 08:59
Great Thnks! Grandes Thnks!
May 7th, 2008 15:35 Maio 7o, 2008 15:35
Very good article, thanx! Muito bom artigo, thanx!
June 30th, 2008 11:46 30 de junho de 2008 11:46
[...] References: [...] Referências: 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 .. . [...]