You can enter the open command here to open any application, or to open a file with the application of your choice. If you see errors and want to see more information about them, use gcc -Wall -o errorlog file1.c. Your Desktop probably isn't in your execution path, so you might want to start by moving '6_19.c' from your Desktop to your Home folder. Your Desktop probably isn't in your execution path, so you might want to start by moving '6_19.c' from your Desktop to your Home folder. Launch Terminal to begin. If there is a tick, uncheck it. Please help us continue to provide you with our trusted how-to guides and videos for free by whitelisting wikiHow on your ad blocker. This guide will show you how to run a Python script in the Mac Terminal (command line) in either Mac OS X or MacOS. We know ads can be annoying, but they’re what allow us to make all of wikiHow available for free. Mac OS X makes it easy to run the C Programs. Why does Safari open automatically when I log into my laptop? For example. To open the Terminal, you can use the Ubuntu Dash or the Ctrl+Alt+T shortcut. And in any case there is nothing you are doing with the commands you posted that require the OP to be in a directory that is in the execution path. Your support helps wikiHow to create more in-depth illustrated articles and videos and to share our trusted brand of instructional content with millions of people all over the world. Questions: How can I run C or C++ in Unix console or a Mac terminal? Also note that after 'gcc' there's a space, then a dash and the next character is a lower case letter 'o', not a numerical zero. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/6\/68\/Open-Applications-Using-Terminal-on-Mac-Step-1-Version-3.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-1-Version-3.jpg","bigUrl":"\/images\/thumb\/6\/68\/Open-Applications-Using-Terminal-on-Mac-Step-1-Version-3.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-1-Version-3.jpg","smallWidth":460,"smallHeight":346,"bigWidth":"728","bigHeight":"548","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/05\/Open-Applications-Using-Terminal-on-Mac-Step-2-Version-3.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-2-Version-3.jpg","bigUrl":"\/images\/thumb\/0\/05\/Open-Applications-Using-Terminal-on-Mac-Step-2-Version-3.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-2-Version-3.jpg","smallWidth":460,"smallHeight":344,"bigWidth":"728","bigHeight":"545","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/01\/Open-Applications-Using-Terminal-on-Mac-Step-3.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-3.jpg","bigUrl":"\/images\/thumb\/0\/01\/Open-Applications-Using-Terminal-on-Mac-Step-3.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-3.jpg","smallWidth":460,"smallHeight":346,"bigWidth":"728","bigHeight":"548","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, open Downloads/Instructions.doc -a TextEdit, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/cf\/Open-Applications-Using-Terminal-on-Mac-Step-4.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-4.jpg","bigUrl":"\/images\/thumb\/c\/cf\/Open-Applications-Using-Terminal-on-Mac-Step-4.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-4.jpg","smallWidth":460,"smallHeight":348,"bigWidth":"728","bigHeight":"551","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/7\/79\/Open-Applications-Using-Terminal-on-Mac-Step-5.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-5.jpg","bigUrl":"\/images\/thumb\/7\/79\/Open-Applications-Using-Terminal-on-Mac-Step-5.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-5.jpg","smallWidth":460,"smallHeight":348,"bigWidth":"728","bigHeight":"551","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/24\/Open-Applications-Using-Terminal-on-Mac-Step-6.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-6.jpg","bigUrl":"\/images\/thumb\/2\/24\/Open-Applications-Using-Terminal-on-Mac-Step-6.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-6.jpg","smallWidth":460,"smallHeight":346,"bigWidth":"728","bigHeight":"547","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/cb\/Open-Applications-Using-Terminal-on-Mac-Step-7.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-7.jpg","bigUrl":"\/images\/thumb\/c\/cb\/Open-Applications-Using-Terminal-on-Mac-Step-7.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-7.jpg","smallWidth":460,"smallHeight":343,"bigWidth":"728","bigHeight":"543","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/a\/ab\/Open-Applications-Using-Terminal-on-Mac-Step-8.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-8.jpg","bigUrl":"\/images\/thumb\/a\/ab\/Open-Applications-Using-Terminal-on-Mac-Step-8.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-8.jpg","smallWidth":460,"smallHeight":343,"bigWidth":"728","bigHeight":"543","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/ce\/Open-Applications-Using-Terminal-on-Mac-Step-9.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-9.jpg","bigUrl":"\/images\/thumb\/c\/ce\/Open-Applications-Using-Terminal-on-Mac-Step-9.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-9.jpg","smallWidth":460,"smallHeight":343,"bigWidth":"728","bigHeight":"543","licensing":"

License: Creative Commons<\/a>
\n<\/p>


\n<\/p><\/div>"}, {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/da\/Open-Applications-Using-Terminal-on-Mac-Step-10.jpg\/v4-460px-Open-Applications-Using-Terminal-on-Mac-Step-10.jpg","bigUrl":"\/images\/thumb\/d\/da\/Open-Applications-Using-Terminal-on-Mac-Step-10.jpg\/aid418570-v4-728px-Open-Applications-Using-Terminal-on-Mac-Step-10.jpg","smallWidth":460,"smallHeight":351,"bigWidth":"728","bigHeight":"555","licensing":"