![]() The ‘pathname’ argument is used for the name of the directory. Int mkdir(const char *pathname, mode_t mode) Linux system provides the following system call to create directories : #include We will go through the functions that are used for each step above and then finally we will see an example that will summarize all the directory operations. So, in this article we will cover the following basics of directory programming with an example. This is the use-case where the programmer of that utility has to deal with directory programming. There are certain situations where a software utility might have to travel across directories in the Linux system to find or match something. Most of the operations that we can do on files can be done on other entities like socket, pipe, directories etc. When it is said that in Linux everything is file then it really stands true. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |