How Compile File in Linux?
Contents

How do you compile in Linux?

This document shows how to compile and run a C program on Ubuntu Linux using the gcc compiler.

  1. Open up a terminal. Search for the terminal application in the Dash tool (located as the topmost item in the Launcher). …
  2. Use a text editor to create the C source code. Type the command. …
  3. Compile the program. …
  4. Execute the program.

How do you compile a file?

Compile files

  1. From the file manager pane, select a file.
  2. Click on the right mouse button to make the file manager context menu appears and select Build ▸ Compile to compile the file currently selected in the file manager pane.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest