Help! Something is broken...

When you have access to a unix server and someone asks for help and you do not know about all the possible log files that exists, here is a command that will show you ALL opened file for append or write.

ulimit -n 9999 # In case there is more than 1024 files!
tail -vF $(/usr/bin/lsof -n | egrep -i '[[:digit:]]+(u|w).*reg' | awk '{print $9}')

Thanks Marius! :)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You may post PHP code. You should include <?php ?> tags.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options