How to open document in terminal?

I am in my 3rd week of learning to code © and am fairly new to Atom on Linux. Thus far I like it quite a lot but I can not find a way to navigate to to location of an open file in the terminal (in order to run gcc).

Where do I find that? Or what is the quickest way to compile a .c file with Atom?