Categories: TutorialsUbuntu

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.

Prerequisites

  • 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

Sponsored
--version

The output returned will show you the version.

Sponsored

Method # 2:

Execute the below command if you are using this method.

gcc -v

Conclusion

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

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

Join Canonical in Brazil at Dell Technologies Forum São Paulo

Canonical is excited to be a part of the Dell Technologies Forum in São Paulo…

5 days ago

6 facts for CentOS users who are holding on

In 2020, it was announced that CentOS 7 would reach end of life (EoL) by…

5 days ago

What is Ubuntu used for?

The launch of Ubuntu in 2004 was a step-change for everyday users and developers everywhere.…

6 days ago

Ubuntu Weekly Newsletter Issue 862

Welcome to the Ubuntu Weekly Newsletter, Issue 862 for the week of October 13 –…

7 days ago

New Ubuntu Community Council 2024

Merlijn writes: I’m happy to announce the new 2024 Ubuntu Community Council! Heather Ellsworth (~hellsworth1)…

1 week ago