Commands.page Logo

How to Create a New Directory Named Projects in Ubuntu

Creating and managing folders is a fundamental task when working with the Ubuntu operating system. This article provides a direct guide on how to generate a new directory specifically named “projects” within your current working location using the terminal. You will learn the exact command required and how to verify that the folder was created successfully.

To create the directory, open your terminal window. You can do this by pressing Ctrl + Alt + T or by searching for “Terminal” in your application menu. Once the terminal is open, ensure you are in the location where you want the new folder to reside.

Type the following command and press Enter:

mkdir projects

The mkdir command stands for “make directory.” By specifying “projects” immediately after the command, you instruct Ubuntu to create a folder with that exact name in your current path. If the command executes successfully, the terminal will return to the prompt without displaying any error messages.

To confirm that the directory exists, you can list the contents of your current folder by typing:

ls

Look for “projects” in the output list. Alternatively, you can use the ls -d projects command to check specifically for that directory. If you need to create nested directories at the same time, you would add the -p flag, but for a single folder in the current location, the standard mkdir command is sufficient.