How to Compile and Run a C Program on Ubuntu Linux
In this post, we will learn how to set up an environment to compile and execute a c program on Ubuntu.
Introduction
In order to compile and execute a C program on Ubuntu, you need the following software- GNU Compiler Collection (GCC)
- Editor
GNU Compiler Collection (GCC)
The good news is that the GNU Compiler Collection (GCC) by default installed on your system you test via the following guideline.
Search for the terminal tool application in dash tool. Click once on the icon to open dash tool
Dash tool located on the left-top corner of your system.
Search word terminal in dash tool
Open terminal. Click on the terminal icon in order to open it. this will open terminal something like below.
Check the GCC installation. type gcc --help on the terminal and hit the enter key
this will display all available command in GCC.
Editor
You also need an editor where you can write your code or program. For now, you can use gedit. You can follow the below steps to open editor/gedit in your computer.
- Click on dash tool and search word gedit
- Double click on Text Editor





Comments
Post a Comment