安装gcc命令的步骤如下:
sudo apt update sudo apt upgrade sudo apt install build-essential
sudo apt install gcc
gcc --version
安装完成后,您就可以使用gcc命令来编译和链接C/C++程序了。