Article
C++ Execute Shell Command
January 26, 2010 Updated February 19, 2017 1 min read fsb
Here is how you execute a shell command from within a c++ program on Linux/Unix
Example Code: (this code creates a new directory called newFolder22 in the /home/sam/ directory);
system ("mkdir /home/sam/newFolder22");