1

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.

slava
  • 4,085

2 Answers2

1

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.

abu_bua
  • 11,313
0

To view manual use this commands order:

man gcc
slava
  • 4,085