Often times we want to interact with the operating system or run shell commands from within Ruby. Ruby provides a number of ways for us to perform this task. Exec Kernel#exec (or simply exec) replaces the current process by running the given command For example: $ irb >> exec 'echo "hello $HOSTNAME"' hello nate.local $ Notice how exec replaces the irb process is with the echo command which then ex