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!

Ubuntu Server Admin

Recent Posts

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

20 hours ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

20 hours ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

20 hours ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

2 days ago

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

3 days ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

4 days ago