old code:

//in ubuntu OS
system("pause");

error discription:

sh: 1: pause: not found

right code in ubuntu:

system("read -p 'Press Enter to continue...' var");//

Re:

1.​​what-is-sh-1-pause-not-found​​;

2. ​​what-is-the-linux-equivalent-to-dos-pause​​;

End