Run a Linux command repeatedly

If you would like to issue a Linux command every X second, "watch" command is the solution.

Example:
Issuing netstat command every 2 seconds:

# watch -n2 "netstat -an|head -25"




Comments

Popular posts from this blog

Rebuild your new Yum repository after changing the packages

Running Docker Wildfly/JBoss Application Server in Debug mode via Eclipse

Linux and AIX user non expiry and force password change at first login