Linux - some way to keep a live-updating log file open in terminal?
This must've been done before: I want to keep a log file open in terminal so I can monitor updates to it as they occur. My searches are coming up with everything but this situation... I must be missing some terminology or something key, because people do this all the time inside of other programs (NetBeans, or rails server, for example).
Try with:
tail -f your.log
where -f
stands for follow.
Another way:
watch tail -n20 your.log
OK, kind of a silly use of watch
- but you might find the watch
command useful for other things.