How to Check GCC Version in Ubuntu


GCC stands for GNU Compiler Collection. As the name implies, it is a set of compilers that are used for compiling C and various other source codes in Linux and other operating systems. You can read more about GCC on their official website.

In this small post, I am going to demonstrate the procedure of checking the GCC version in Ubuntu 20.04.


  • Ubuntu 20.04 machine
  • GCC compiler already installed. If it is not installed, follow this guide to install it.

Checking GCC Version in Ubuntu

Method # 1:

In order to check the version of GCC installed on your Ubuntu system using this method, issue the following command on terminal.

gcc --version

The output returned will show you the version.

Method # 2:

Execute the below command if you are using this method.

gcc -v


Thank you for reading this post. Have a good day!

Similar Posts