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:
- Execute the mkdir command:
mkdir folder_name
This will create a new folder named folder_name in the current working directory.
- 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”.
- 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.