You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.
How do I know if gcc compiler is installed on Linux?
If you want to check if the GNU GCC Compilers are install on your system, you can try to check the version of GCC compiler on Linux, or you can use which command to locate gcc or g++ commands . Outputs: [email protected]:~$ gcc –version gcc (Ubuntu 5.4. 0-6ubuntu1~16.04.
How do I find my gcc ver?
Type “gcc –version” in command prompt to check whether C compiler is installed in your machine. Type “g++ –version” in command prompt to check whether C++ compiler is installed in your machine.