using namespace std; #include int main() { cout<<"Hello World"; cout<<"\n"; return 0; } save it as hello1.cpp Compile using command : [root#] g++ hello1.cpp -o hello1.out Execute it [root#] ./hello1.out