p>We are assuming that you have successfully created a new web hosting account.

We also are assuming that you have logged in to your brand-new cPanel hosting panel interface.

With these done, scroll and find the Files section and then click on the File Manager icon.

Click + Folder in the toolbar. A new interface will appear.

When the new interface appears, enter the new item's name in the New Folder Name: text box.

Enter the location in which the system will create the item in the New folder will be created in: text box.

Click Create New Folder to complete the process.

 

Command-Line

To achieve the same result using a command line:

Ensure that you are in the correct location.

If you are not sure, use the "pwd" command to view your current location.

pwd "print working directory" well, ... prints the current working directory or the directory you are in at the moment.

 

You can also use:

echo $PWD

OR

pwd | awk -F'/' '{print $NF}'

 

To create a folder in the current directory or given path:

mkdir $directory

 

To create multiple folders or directories in the current directory:

mkdir $folderName1 $folderName

 

To create nested directories:

mkdir -p $parent/$child/$nested_child

 

You can use the -p flag to tell mkdir to create a parent directory if it doesn't exist and then create the nested child directories.

Hjalp dette svar dig? 0 Kunder som kunne bruge dette svar (0 Stem)