YouTip LogoYouTip

Linux Comm Mkdir

# Linux mkdir Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux mkdir (full English name: make directory) command is used to create directories. ### Syntax mkdir dirName **Parameter Description**: * -p Ensures that the directory name exists; if it does not exist, it creates one. ### Examples Create a subdirectory named tutorial in the current working directory: mkdir tutorial Create a subdirectory named test within the tutorial2 directory in the current working directory. If the tutorial2 directory does not originally exist, it will be created. (Note: In this example, if the -p parameter is not used and the tutorial2 directory does not originally exist, an error will occur.) mkdir -p tutorial2/test [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm MlabelLinux Comm Mdu β†’