LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-11-2006, 10:32 AM   #1
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Rep: Reputation: 15
how to find out which files increase most recently?


hi,
my redhat linux server's home directory keep increase the size, I want to find out any file created or increase size cause that, any command can do this job?
thanks!
jimmy
 
Old 12-11-2006, 10:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If the file is opened you could try and find it watching
Code:
wach -n 10 'lsof -w -n +D /home|awk '{print $7, $NF}' | sort -grk1'
(man lsof for flags)

else if you want a global indication and if it's filling fast:
Code:
watch -n 1 'du /home/*'
else
Code:
watch -n 5 'find /home -type f -mmin 5 -printf "%k %p %c\n" | sort -grk1 | head -10'
Values "-n" and "-mmin" might need tweaking to better match your situation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync: only backup recently modified files hamish Linux - Software 3 09-20-2011 09:55 AM
Linux Format readers - help me find an FFMPEG software frontend recently reviewed lefty.crupps Linux - Software 9 08-15-2006 09:35 AM
How do I find the program that I recently installed? pxumsgdxpcvjm Linux - Newbie 6 02-18-2006 05:13 PM
Setting ulimit to increase # of open files dieyouspammer Slackware 6 02-01-2006 02:42 AM
increase mp3 bit-rate on old files Present Linux - Software 4 03-28-2005 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration