If you’re not sure about a command you can use the help command to get more information. For example, you can do the command help dir for more information on the dir command.
Similarly, you can use [command] /? which will bring up the same information screen as if you typed help and the command. For example dir /? is the same as help dir.
To exit out of command prompt use the command exit.