1. Home
  2. Hosting Management
  3. cPanel
  4. How to View or Edit a File Using cPanel’s File Manager

How to View or Edit a File Using cPanel’s File Manager

In this tutorial, you will learn how to use cPanel’s editors to view and edit files directly on the webserver, without using an FTP client.

The File Manager editors

When you edit a file using cPanel’s File Manager, you can make immediate changes to your website without uploading a new version of the file. cPanel has two editors that you can use to edit files directly on the webserver:

  • A plain text editor for editing text files. This editor is used with plain text files, such as configuration files.
  • An HTML Editor that is intended for use with HTML files. This editor provides WYSIWYG (What You See Is What You Get) functionality. It provides many of the features that users of word processing programs are familiar with, such as spell check, formatting toolbars, etc.

Additionally, if you just want to view a file’s contents, you can do so without opening the file in an editor.

How to View a File Using cPanel’s File Manager

You may not always need to edit a file. If you just want to take a quick look at a file’s contents, you can view it without opening an editor.

To view a file in File Manager, follow these steps:

  1. Log in to cPanel.
  2. In the FILES section of the cPanel home screen, click File Manager
  3. In the File Manager main window, select the file that you want to view.
  4. Click the View icon:

     

    The file’s contents appear on a new page.

How to Edit a File Using the Plain Text Editor in File Manager

To edit a plain text file, follow these steps:

  1. Log in to cPanel.
  2. In the FILES section of the cPanel home screen, click File Manager
  3. In the File Manager main window, select the file that you want to edit.
  4. Click the Edit icon:

     

  5. Select the character set encoding that the file uses. The default is utf-8 (Unicode).
    Make sure that you select the correct character encoding for the file. Otherwise, the file may become corrupted.
  6. Click Edit. The file’s contents appear in a new page, ready for editing.
  7. To save your changes, click Save Changes.
    If you do not want to save your changes, just close the page.
  8. To close the editor, click Close.

That’s it! Now you know how to view or edit a file in cPanel using the File Manager’s plain text editor.

Updated on April 18, 2022

Was this article helpful?

Related Articles

Tired of struggling with troubleshooting? 🤔
If you enjoyed this article, you’ll love our support team even more! Get up to 65% off and a FREE Domain for a limited time. 👇
View Plans

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.