Question: how mkdir works in linux?
Answer: The mkdir command in Linux/Unix allows users to create or make new directories. ... 
Building a structure with multiple subdirectories using mkdir requires adding the -p option. ... 
The mkdir command by default gives rwx permissions for the current user only.