Here are the directory management system calls in POSIX:
s = mkdir(name, mode): It is used for creating a new directory.
s = rmdir(name): It is used for removing an empty directory.
s = link(name1 , name2): It is used for creating a new entry for a particular file so that it can be shared in two directories. The new entry of the file will have a different name. Here, the file remains the same, it’s just that a new entry is being created for it in the different directory.
s = unlink(name): It is used for removing a directory entry.
s = mount(special, name, flag): It is used for mounting a file system. Here parameter special is the name of special file, name specifies the place where the file system will be mounted and flag parameter specifies whether file system will be read/write or read only.
s = umount(special): It is used for unmounting a file system.
s = chdir(dirname): It is used for changing the current working directory.
s = chmod(name, mode): It is used for changing the protection bits or mode of a file. Modes a can be read, write and execute.