Install GCC on Ubuntu: Step-by-Step Guide
Installing the GCC compiler on Ubuntu is very simple – just open the terminal and enter the following command:
sudo apt update
sudo apt install gcc
This will update the software package information and install the GCC compiler. Once the installation is complete, you can view the GCC version by running the following command.
gcc --version
You can now start using the GCC compiler to compile and run C/C++ programs.