To install the GCC compiler and related development tools on Ubuntu, you can use the following commands in the terminal:
- Update the package list:
sudo apt update
- Install GCC and the build-essential package, which includes essential development tools:
sudo apt install -y build-essential
The -y flag automatically answers "yes" to any prompts during the installation process.
- Verify the installation by checking the GCC version:
gcc --version
This will display the installed version of GCC.
