Create a new folder on linux bash

To create a new folder on Linux using the Bash shell, you can use the mkdir command followed by the name of the folder you want to create.

Here is the basic syntax:

mkdir [folder_name]

For example, to create a folder named "myfolder", you would use the following command:

mkdir myfolder

This will create a new folder named "myfolder" in your current working directory.

You can also use the -p option to create the folder and any parent directories that don't already exist. For example:

mkdir -p myfolder/subfolder

This will create a new folder named "myfolder" and a subfolder named "subfolder" inside it, even if the parent directory "myfolder" doesn't already exist.

You can also use the mkdir command with options to change the permissions of the new folder. For example:

mkdir -m 755 myfolder

This will create a new folder named "myfolder" with permissions set to 755 (owner has read, write, and execute permissions, group has read and execute permissions, and others have read and execute permissions).

Note: The mkdir command will not create a folder if the name is already in use. If you try to create a folder with a name that already exists, you will get an error message.