Find Files that are Modified Today (or Since Certain Time Ago) in Unix今日の更新ファイルが含まれて見つける(または以来、特定の時間前)の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.更新されたすべてのファイルを見つけて以来、特定の時間前(すなわち、 1時間前に、一日前に、 24時間前は、週前など)のUNIX環境では、 findコマンドには重宝する。 The command syntax is:このコマンドの構文は:
To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories: 変更されるすべてのファイルを見つけるの最後の24時間(最終更新丸一日)を現在のディレクトリとそのサブディレクトリ:
find . 見つける。 -mtime -1 -print -にmtime -1 -印刷
Flag -mtime -1 option tells find command to look for files modified in the last day (24 hours).国旗にmtime -1オプションはfindコマンドを探して修正されたファイルの最終更新日( 24時間) 。 Flag -print option will cause find command to print the files’ location.フラグ-印刷オプションが原因findコマンドファイルを印刷するに'場所です。 -print can be replaced with -ls if you want a directory-listing-type response. - -負けに置き換えられるように印刷することを希望する場合はディレクトリ-リスティング-タイプ応答します。
To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories: 変更されるすべてのファイルを見つけるの最後の24時間(最終更新丸一日)は、特定の特定のディレクトリとそのサブディレクトリ:
find /directory_path -mtime -1 -print 検索/ directory_path -にmtime -1 -印刷
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.このコマンドは、基本的には同じで、以前のコマンドを今すぐだけをCDにする必要はありません(変更するディレクトリ)されているディレクトリを検索したいです。
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: すべてのファイルを見つけるのみを定期的にファイルの種類、および更新の最後の24時間(最終更新丸一日)を現在のディレクトリとそのサブディレクトリ:
find /directory_path -type f -mtime -1 -print 検索/ directory_path -タイプF -にmtime -1 -印刷
To find all files that are modified today only (since start of day only, ie 12 am), in current directory and its sub-directories: すべてのファイルを見つけるには今日の更新のみ( 1日のみの開始以来、すなわち午前12時)は、カレントディレクトリとそのサブディレクトリ:
touch -t `date +%m%d0000` /tmp/$$ タッチ-トンメートル% `日付+ % d0000 ` / tmpの/ $ $
find /tmefndr/oravl01 -type f -newer /tmp/$$ 検索/ tmefndr/oravl01 -タイプF -新しい/ 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.の最初のコマンドを変更することができます他の日付と時刻を指定するためのコマンドは、すべてのファイルが返さして以来、その特定の日付と時刻が変更されました。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これは、機械翻訳ページで提供"現状有姿"を保証します。 Machine translation may be difficult to understand.機械翻訳を理解するのは難しいかもしれません。 Please refer toを参照してください original English articleオリジナルの英語記事索引 whenever possible.いつ可能です。
Share and contribute or get technical support and help atを共有して貢献や技術サポートとヘルプを得る My Digital Life Forums 私のデジタルライフフォーラム .です。
Related Articles関連記事
- How to Turn Off and Skip MSN/Windows Live Hotmail Today News Direct to Inboxスキップを無効にする方法とのMSN / WindowsのライブHotmailの受信トレイに直接今日のニュース
- Change Group Ownership of Symbolic Links in Unix or Linuxグループの所有権を変更するのシンボリックリンクがUnixやLinux
- Shadow Copy and Salvage Previous Versions of Files in Windows 2000/XP/Vista with FileHamsterシャドウコピーと海難救助の以前のバージョンのファイルをWindows 2000/xp/vistaにfilehamster
- Auto Shutdown and Restart Apache HTTPD Service Daemon at Preset Time Apacheのhttpdサービスの自動再起動をシャットダウンし、デーモンのプリセット時間
- Refresh Linux or Unix Path Environmental Variables with rehashリフレッシュLinuxやUnix環境変数のパスを焼き直し
- Battery Pack Pro Reviewsバッテリーパックプロレビュー
- Configure, Change or Set OpenOffice.org to Default Save Files in Microsoft Office Formats構成、変更または設定をデフォルトに戻すopenoffice.orgでは、 Microsoft Office形式のファイルを保存
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transferアップロード( mput )をダウンロード( mget )複数のファイルを自動的にFTP転送
- Vista Previous Versions (Shadow Copy) vs Recycle Bin Vistaの以前のバージョン(シャドウコピー)対ごみ箱
- Display and View FireFox Cache Files Without Browser Cache Viewer対象Firefoxのキャッシュファイルを表示し、ブラウザのキャッシュビューア

































August 4th, 2007 08:59 2007年8月4日08:59
Great Thnks!大きなthnks !
May 7th, 2008 15:35 2008年5月7日15:35
Very good article, thanx!非常に良い記事のthanx !
June 30th, 2008 11:46 2008年6月30日11:46
[...] References: [...]参考文献: 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 .. .です。 [...]