GCC compiler manual [duplicate]
Sophia Terry
I'm trying to call the manual of the GCC compiler from the terminal, but I seem to be unable to, I only get error messages when I type:
gcc manSurely I'm doing it wrong, but I can't find any topics around.
12 Answers
You can also get information beside man gcc (you have to change the order of your cmd)
by using
info gccTo get a short command description type
gcc --helpFor a full manual install the gcc documentation by
gccv=$(gcc --version | awk '/gcc /{print $NF}' | cut -c 1)
sudo apt install gcc-$gccv-docand then type
xdg-open /usr/share/doc/gcc-$gccv-doc/gcc.htmlto read the gcc manual in your browser.
1To view manual use this commands order:
man gcc