Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

GCC compiler manual [duplicate]

Writer 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 man

Surely I'm doing it wrong, but I can't find any topics around.

1

2 Answers

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.

1

To view manual use this commands order:

man gcc