How to Create/Edit/Delete a File Using the File Manager

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.

cPanelcPanel is a popular web hosting control panel that helps you manage your hosting account and assists you in creating web sites, managing e-mail addresses, & installing applications to a server.

cPanel is available on all HostGator Linux hosting plans, including Shared Hosting, Reseller Hosting, VPS and Linux Dedicated Servers.