Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

File Monitor

DZone's Guide to

File Monitor

·
Free Resource
I was constantly needing to see real time file stats so I wrote this little script to help me out...

Usage:
filemon FILE

FILE is the file you want to monitor.


#!/bin/bash

# File Monitor  btodd3
#
# 3/14/07	Initial Version

function list () {
ls -l
sleep 1
}

while true; do
list | grep $1
done
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}