There's no need to run everything manually. This process is also ripe for automation. System administrators run many commands all the time, some of which are very repetitive and require minimal changes in-between runs. We use computers to automate many things in our daily jobs. In this article, we'll take a look at how we can leverage the Runtime and ProcessBuilder classes to execute shell commands and scripts with Java.