How to monitor the growth of a UNIX file

Article:HOWTO7831  |  Created: 2007-08-14  |  Updated: 2012-01-26  |  Article URL http://www.symantec.com/docs/HOWTO7831
Article Type
How To


Question
How can I monitor the growth of a UNIX or Linux file?

Answer
The following command line script will show the growth of any file on a UNIX, Linux, or Macintosh file:

 

while [ true ]; do ls -la <path to file>; sleep 30; done


Legacy ID



37463


Article URL http://www.symantec.com/docs/HOWTO7831


Terms of use for this information are found in Legal Notices