Use the system method to run a system command from Ruby:
system("ls")

System can return 3 possible values:
trueif the command workedfalseif the command returns an error codenilif command execution fails (command not found)
Use the system method to run a system command from Ruby:
system("ls")

System can return 3 possible values:
true if the command workedfalse if the command returns an error codenil if command execution fails (command not found)