The Terminal program is in the Application Utilities folder.
When you start the terminal a console appears and it's very similar to the Linux console so if you want to learn some more about it there are stacks of Linux console tutorials on the net.
For instance if I type gcc -v and then...