About using the command line interactively

You can use the command-line environment in OS X Yosemite and OS X Server interactively by typing a command and waiting for a result, or you can use the shell to compose scripts that run without direct interaction.

For more information about using a particular shell interactively, see its man page.