Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 609 Bytes

File metadata and controls

17 lines (14 loc) · 609 Bytes

linux_stuff

Repo of my linux trainings and knowledge

How to compile c programs in the terminal

To compile the C programs, please follow the instructions below:-

  1. Open the terminal in the directory we save the file cd /home/user/linux_stuff/message_queue/
  2. Update the package lists for upgrades sudo apt update
  3. Install GCC sudo apt install gcc
  4. After installing the GCC compiler, we can use it to compile the code gcc -o <executable_filename> <c_program_filename>
  5. A executable file should be present in the directory and can execute the program ./<executable_filename>