{"id":15578,"date":"2022-02-22T10:19:09","date_gmt":"2022-02-22T10:19:09","guid":{"rendered":"https:\/\/linuxways.net\/?p=15578"},"modified":"2022-02-22T10:19:09","modified_gmt":"2022-02-22T10:19:09","slug":"how-to-check-gcc-version-in-ubuntu","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-check-gcc-version-in-ubuntu\/","title":{"rendered":"How to Check GCC Version in Ubuntu"},"content":{"rendered":"<p>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 <a href=\"https:\/\/gcc.gnu.org\/\">official website<\/a>.<\/p>\n<p>In this small post, I am going to demonstrate the procedure of checking the GCC version in Ubuntu 20.04.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Ubuntu 20.04 machine<\/li>\n<li>GCC compiler already installed. If it is not installed, follow <a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-gcc-on-ubuntu-20-04-lts\/\">this guide<\/a> to install it.<\/li>\n<\/ul>\n<h2>Checking GCC Version in Ubuntu<\/h2>\n<h3>Method # 1:<\/h3>\n<p>In order to check the version of GCC installed on your Ubuntu system using this method, issue the following command on terminal.<\/p>\n<pre>gcc --version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"216\" class=\"wp-image-15579\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-1.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-1.jpeg 845w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-1-300x77.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-1-768x196.jpeg 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\n<p>The output returned will show you the version.<\/p>\n<h3>Method # 2:<\/h3>\n<p>Execute the below command if you are using this method.<\/p>\n<pre>gcc -v<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1859\" height=\"305\" class=\"wp-image-15580\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2.jpeg 1859w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2-300x49.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2-1024x168.jpeg 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2-768x126.jpeg 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-2-1536x252.jpeg 1536w\" sizes=\"auto, (max-width: 1859px) 100vw, 1859px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Thank you for reading this post. Have a good day!<\/p>","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>","protected":false},"author":1,"featured_media":15592,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9,31],"class_list":["post-15578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-gcc","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=15578"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15578\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/15592"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=15578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=15578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=15578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}