The ruby and rails commands are in the IFS at the following location:
You can learn about each command by simply typing the command name with
--help at the end. For example,
irb command (Interactive Ruby Shell) is a great one to try and follow this simple tutorial.