Home > Help Center > Shared Hosting > Control Panel > cPanel File Manager

cPanel File Manager

cPanel's File Manager is feature rich interface where you can access all folders and files in your hosting account as well as execute number of commands like upload, create, edit, rename, delete, restore, copy, move, extract, compress etc.

When a toolbar action is not available, the function icon displays in gray. You can only use certain File Manager functions with one file at a time.

Select the desired file in the file window before you attempt these actions.

cpanel file manager

Change Settings

Here you can change the directory in which File Manager opens.

Click Settings to open the Preferences window.

cpanel file manager

Select Web Root (public_html or www) for the most direct route to your files, or select another option to open the File Manager interface in that directory.

Use this menu to display any hidden files (.htaccess, .ftpquota) or to disable character encoding check.

Click Save.

Upload Files

Upload individual items, such as files or images or archive files. You can not upload uncompressed folder. If you want to upload a folder you must first compress the folder and then upload it as an archive:

cpanel file manager

Create a new file or folder

Click + File or + Folder in the File Manager toolbar. A new window will appear.

Enter the new item's name in the New Folder/File text box.

Enter the location in which the system will save the New Folder/File.

Click Create New File or Create New Folder.

cpanel file manager

cpanel file manager

cpanel file manager

Edit files

Select the file you want to edit and click on the most appropriate editor depending on the particular case because we have three editors to choose from:

  • Simple text editor
  • Code editor
  • HTML visual editor

cpanel file manager

Rename a file or folder

To rename a folder or file, click the item's name and enter the new name in the text box:

cpanel file manager

cpanel file manager

cpanel file manager

Move a file to a folder

Click Move in the tool bar at the top of the interface. The New File window will appear.

Note: You can also drag a file icon into a new destination folder.

Enter the file path that you want to move the file to in the Enter the file path that you want to move this file to: text box.

Click Move File(s) to move the file.

cpanel file manager

Move files to a folder

To move multiple files into a folder hold the Shift key to select all of the items that you wish to move.

Click Move in the tool bar at the top of the interface. The New File window will appear.

Enter the file path that you want to move the file to in the Enter the file path that you want to move this file to: text box.

Click Move File(s) to move the files.

cpanel file manager

cpanel file manager

Copy a file

Select the file you want to copy.

Note: You cannot create a copy of an item within the same folder.

Click Copy from the tool bar at the top of the interface. The Copy window will appear.

Enter the file path for which you want to save the item.

Click Copy File(s) to copy the file.

cpanel file manager

Copy multiple files

To copy several items, hold the Shift key while you select the items.

Select Copy from the tool bar. The Copy window will appear.

Enter the file path to which to copy the files in the Enter the file path that you want to copy this file to: text box.

Click Copy File(s) to copy the files.

cpanel file manager

cpanel file manager

Modify file or folder permissions

Select the file or folder for which to change the permissions.

From the toolbar, click Permissions. The Change Permissions window will appear.

Use the check boxes or text boxes to change the item's permissions. This setting's permissions default to 0644 for files and 0755 for folders.

Be very careful when changing permissions because wrong values may degrade your account/website security.

Click Change Permissions to save your changes.

cpanel file manager

cpanel file manager

Delete and restore files and folders

Select the file or folder you want to delete.

From the toolbar, click Delete. The Trash window will appear.

Click Trash File(s) to confirm that you want to delete the file or folder.

cpanel file manager

When you delete files or folders, the system does not permanently delete the files. Instead, the system moves the files to the Trash folder. Click Empty Trash to permanently delete the files or folders.

To restore a file or folder, perform the following steps:

  • Click View Trash from the toolbar.
  • Select the file or folder that you want to restore.
  • Click Restore in the toolbar.

cpanel file manager

Confirm that you want to restore the item(s) by clicking Restore File(s).

Extract Compressed Files

Extract the selected *.zip, *.Gz, or *.Bz2 archive and store the files in a directory.

This function will only work with the .zip format files:

cpanel file manager

cpanel file manager

cpanel file manager

Compress Files or Folders

Compress the selected files or folders to a single *.zip, *.Gz, or *.Bz2 archive and store the compressed file to a specified directory.

This function will only work with the .zip format files:

cpanel file manager

cpanel file manager

cpanel file manager

Search for an item

The Search tool, located at the top-right corner of the interface, allows users to search for a specific file. By default, the Search tool searches all files in the home directory. You can limit the search to the document root at/home/user/public_html, where user represents your cPanel username. You can also limit the search to the directory displayed in the file window.

cpanel file manager

To search for a file, perform the following steps:

Use the Search menu to select the directory to search:

  • All Your Files
  • Only public_html
  • Current Directory

Enter the desired file name in the text box.

Click Go.

A new window displays the filenames that match your search. To go to a folder, or go to the folder that contains the file, double-click the desired item in the list.

cpanel file manager

If no files that include your search term exist, the message No records found appears:

cpanel file manager

Character encoding verification dialogs

When you edit a file with the Edit, Code Editor, or HTML Editor features, a window appears to confirm the file's character encoding.

cpanel file manager

Use the menu to select the correct character encoding for the file. Then, click Edit to continue.

Click Toggle Help for more information about how to select the correct character encoding.

Click Disable Encoding Check to turn off future encoding verifications.

Warning: If you select the wrong initial encoding, your file may become corrupt. If your file displays as a series of special characters, immediately abort the edit and select the correct encoding. Do not save the file.

Conclusion

cPanel's file manager is a very convenient tool for making minor corrections to the code and structure of a website. We encourage you to take the time and test the available options personally, and we assure you that this time will not be invested in vain.

#cpanel #management

Still not finding what you're looking for?

Contact our support team with any additional questions or concerns.

Contact support