Basic Commandline Commands

Ok, so most of you are probably new to the command line and as such have no idea how to do basic tasks like moving from one directory to another; let alone how to compile. So on this page, I will try to put down some of the basic commands that you will need as a reference. Most of these commands are the same if you are on Windows or Linux, but some are specific to one OS and I'll try to let you know.

Basic Directory Commands

Compilation Commands on Windows

Running your programs

If you have an executable that you have built and you want to run it, then all you have to do is type the name of the executable. So from our last example, to run myProgram, I would type myProgram.exe since on Windows executables end in a .exe extension.

At any point along the way for most of these commands you can press the tab key and it will autocomplete for you. If it picks the wrong completion, pressing tab again, will pick the next completion, if there is one. So to run myProgram.exe, I would type my then press the tab key and it will fill in .\myProgram.exe for me and then I press enter

Compilation Commands on Linux/Mac

If you are lucky enough to be running Linux, then you will need to use a different set of commands to compile.