File and Command Monitoring
tail
The most common use of tail75 is to monitor log file entries as they are being written. For example, we may want to monitor the Apache logs to see if a web server is being contacted by a given client we are attempting to attack via a client-side exploit. This example will do just that:
The -f
option (follow) is very useful as it continuously updates the output as the target file grows. Another convenient switch is -nX
, which outputs the last “X” number of lines, instead of the default value of 10.
watch
Common Options
-n seconds
: Specify the interval in seconds between executions of the command. The default is 2 seconds.-d
: Highlight the differences between successive updates.-t
: Turn off the header showing the interval, command, and current time.-x
: Treat arguments as a single command to be executed.
Wget
curl
axel
Last updated