Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im looking for a tools (script) for monitoring my systems for any changes on any files by using vi command.
For example: one dba open alert.log with vi and modify it and save.. i need to trace these changes.
Is it possible?
Thank you in advance

share|improve this question
up vote 1 down vote accepted

yea it's possible just not with vi... I mean check inotify tools ; with those you can monitor for file changes, moving , deleting , creation it wont tell you with which tool action was made but it will alert that something had happened.

if you want to track only actions with vi I suggest you make a wrapper for vi that will alert of any usage/invocation say make sum of file before edit; after edit; if it was changed raise alert.

share|improve this answer
@Spolijar: Thank you for your answer.. – AlBouazizi Mar 7 '12 at 8:03
you are welcome Sir – Hrvoje Špoljar Mar 7 '12 at 8:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.