Knowledgebase

How to Create, Edit or Delete a File Using the File Manager in cPanel?  Print this Article

Create, Edit or Delete a File Using the File Manager in cPanel:

You will need to have a basic understanding of how to navigate the File Manager in order to complete these tasks. If you are unfamiliar with the File Manager and how to navigate it, check out our Navigating the File Manager article.

Create a File or Folder

  1. Log in to cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Select the Web Root directory.
  4. Be sure the Show hidden files(dotfiles) box is checked.
  5. Click the GO button to continue.
  6. Click the New File or New Folder button at the top of the page.
  7. In the pop-up box, enter the name of the newly created file or folder.
    • Note: Files will have a name and extension separated by a dot, but folders have only one name. Files without an extension will be rendered as as generic text document.
  8. Click the Create New File or Create New Folder button.

Remove a File or Folder

  1. Log in to cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Select the Web Root directory.
  4. Be sure the Show hidden files(dotfiles) box is checked.
  5. Click the GO button to continue.
  6. Click and highlight the file or folder you want to remove in the file listing.
  7. From the top toolbar, click Delete.
  8. Click the Delete File(s) button on the pop-up box to confirm your action.

Edit a File

  1. Log in to cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Select the Web Root directory.
  4. Be sure the Show hidden files(dotfiles) box is checked.
  5. Click the GO button to continue.
  6. Click and highlight the file you want to edit in the file listing.
  7. Choose one of the three following editors from the top toolbar:
    • Edit allows the user to edit a document as plain text
    • Code Edit allows the user to edit a document as code and will give line numbers down the side of the editor. You can also color code your code by using the syntax drop-down menu and selecting the code you are working with.
    • HTML Editor allows the user to edit a document as an HTML document. In this editor, you can also switch between a Design View (as a text document), a Source View (through the html code itself) or a Preview Mode (view the page through the web) by selecting the appropriate tab in the bottom left of the editor.
  8. Once you have selected the editor you would like to use, click Edit from the pop-up window to open the editor in a new window.
  9. Click Save Changes once you are done editing your document.



Was this answer helpful?

Also Read

How to Log into cPanel?
Log into cPanel: cPanel is a web hosting account management tool available on all WebSupporters...
How to create Custom error pages in cPanel?
Create Custom error pages in Cpanel: To create a custom error page for your account, please...
How to change the password of your cPanel account?
Change the password of your cPanel account:There may be times where you would like to change the...
How to Connect to the MySQL Database in cPanel?
Connect to the MySQL Database in cPanel:In order for your MySQL database to work as intended, it...
Tips and Tricks for Moving Databases
When you move databases to our servers, the database name and username may change. This change...