Create new folder from terminal
To create a new folder from the terminal, you can use the mkdir
command followed by the name of the folder you want to create.
Here's an example:
mkdir mynewfolder
This will create a new folder named "mynewfolder" in your current working directory.
If you want to create a folder in a specific location, you can specify the path to that location followed by the name of the folder. For example:
mkdir /path/to/new/folder
This will create a new folder named "new" in the "/path/to" directory.
You can also use the -p
option with mkdir
to create the folder and any parent directories that don't already exist. For example:
mkdir -p /path/to/new/folder
This will create the "/path/to/new" directory and the "folder" subdirectory within it, if they don't already exist.
Note: If you want to create a folder with a space in its name, you need to enclose the name in quotes. For example:
mkdir "My New Folder"