You can do it by using the 'mkdir dir_name' command from the shell prompt or by using the mkdir(char *path, mode_t mode) from your C++/C programs which is declared in unistd.h.
path : directory path, mode : permission for the new directory.
put a man mkdir for mkdir command and man 1 mkdir for mkdir()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.