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 + File in the toolbar.

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

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

Click Create New File 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 new file, use either:

vi | vim | nano $filename.txt

 

To create multiple files, use the touch command

touch $filename1.txt $filename2.txt $filename3.txt $filename4.txt $filename.txt

この回答は役に立ちましたか? 0 好評の記事 (0 投票)