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 man
Surely I'm doing it wrong, but I can't find any topics around.
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 man
Surely I'm doing it wrong, but I can't find any topics around.
You can also get information beside man gcc
(you have to change the order of your cmd)
by using
info gcc
To get a short command description type
gcc --help
For a full manual install the gcc documentation by
gccv=$(gcc --version | awk '/gcc /{print $NF}' | cut -c 1)
sudo apt install gcc-$gccv-doc
and then type
xdg-open /usr/share/doc/gcc-$gccv-doc/gcc.html
to read the gcc manual in your browser.
man gcc
to see the reference-manual page for gcc – guiverc Nov 16 '18 at 11:19