Open In App

cc command in Linux with Examples

cc command is stands for C Compiler, usually an alias command to gcc or clang. As the name suggests, executing the cc command will usually call the gcc on Linux systems. It is used to compile the C language codes and create executables. The number of options available for the cc command is very high. The most important options are explained below with examples.

Syntax:



cc [options] files

Example: Below command will compile the source_file.c file, and create the default executable output file, a.out.

cc example.c



Important Options:

Article Tags :