application console in ++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

application console in ++

HI I need simple source in C++ show disk usage using du command du -s du -h du -rh how can execute them in one command and save to file thanks

22nd Apr 2020, 2:29 PM
Cartec Sy
Cartec Sy - avatar
1 Answer
+ 1
Use the system() function E.g system("du -s");
28th Jul 2020, 2:46 PM
Anthony Maina
Anthony Maina - avatar