How to create a new folder in CentOS 7?

There are multiple ways to create a new folder (directory) in CentOS 7, here are some commonly used methods:

  1. Execute the mkdir command:
mkdir folder_name

This will create a new folder named folder_name in the current working directory.

  1. Create a nested directory using the mkdir command.
mkdir -p path/to/new_folder

This will create a folder named “path” in the current working directory, containing a folder named “to”, and ultimately create a folder named “new_folder”.

  1. Creating a folder using a GUI interface:
    If you are using a graphical user interface (GUI) mode, you can use a file manager (such as Nautilus) to create a folder. Simply right-click on the current directory, select the “New Folder” option, and enter the folder name.

You can easily create a new folder in CentOS 7 using any method.

bannerAds