I am currently typing all of my code in gedit and using the terminal to compile my programs. To do so, I am typing:
$ g++ main.cpp -o main $ ./main
And this is working. However, it is not using C++11. How can I check my version of C++ and also compile via terminal using C++11?