Loading...

how to create mkdir

1 Answer

1 Answer

  1. mkdir is a command used to create a new directory (folder) in a Unix-like operating system, such as Linux or macOS.

    To use mkdir, open a terminal and type the following command:

    arduinoCopy code
    mkdir directory_name

    Replace “directory_name” with the name of the new directory you want to create.

    For example, to create a directory called “my_folder”, type:

    arduinoCopy code
    mkdir my_folder

    You can also create nested directories by using the “-p” option. For example, to create a directory called “my_folder” inside a directory called “parent_folder”, type:

    bashCopy code
    mkdir -p parent_folder/my_folder

    This will create both the parent directory and the nested directory.

You must be logged in to answer.

Log In to Answer

Cookie Policy

Caawiye is a community-driven Q&A platform. We use cookies to enhance your experience and ensure our services work correctly. Learn more

Message