Run a Linux command repeatedly

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

Issuing netstat command every 2 seconds:

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


Popular posts from this blog

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

Rebuild your new Yum repository after changing the packages

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