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

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

15 hours ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

1 day ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

2 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

3 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

3 days ago

How To Install DNS Server (Bind9) On Ubuntu 20.04

Now I want to share the DNS server installation process on your Ubuntu 20.04 server.…

3 days ago