Creating and editing a file via FTP

The easiest way is to use FTP client to create and modify files on your storage. This method is much simpler than creating and editing command line files. Any FTP client program can be used, however, in this document, we will present the filezilla client as duplicate and modify the files. The program can be downloaded from the following link:

Download Filezilla

Of course, you can create a file using cPanel's built-in file manager or SSH, and you can access the related descriptions through the following links:

The following description is just an example of how to create or modify a file using an FTP client. Following the description, make sure you create the file at the right place. If you modify it, edit the file you want.

Create a file

You can create a file using the steps below:

  1. To connect to the server, see the description of the use of FTP clients.
  2. Make sure that clines is turned on to show hidden files
  3. After you have successfully logged in, make sure you are in the directory where you want to create the file. You can see it at the right of the file manager in the "Remote Directory" section. In the example, the remote directory is /home/example_user/exampledomain.com
  4. Right-click and select Create a new file
  5. In the popup window that appears, enter the file name. In this example, the file is named .htaccess. Then click OK.
  6. Then the empty file created on the server becomes visible.

Edit a file

Follow the steps below to change an existing file.

  1. To connect to the server, see the description of the use of FTP clients.
  2. Make sure that clines is turned on to show hidden files
  3. After you have successfully logged in, make sure you are in the directory where you want to create the file. You can see it at the right of the file manager in the "Remote Directory" section. In the example, the remote directory is /home/example_user/exampledomain.com
  4. Right-click on that file and select Edit
  5. In the popup window that appears, you can select the text editor. You can specify an already installed text editor, but you can also use the default for Notepad for Windows.
  6. After Notepad has loaded the file, make the necessary changes, then save the file with File / Save and close the Notepad application.
  7. After a few seconds, a warning will alert you to a change in the file and offer the upload. Select Yes here.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Illegal PORT command

If you are behind a router (NAT) or firewall while using FTP, you must enable passive mode in...

DotRoll free hosting

If you register your domain with us, you get a free, ad-free 50 MB static hosting plan. This...

Using FTP with WinSCP

WinSCP is a free, open source FTP/SFTP/SCP client, with support for multiple encryption schemes....

Create a SFTP connection with FileZilla client

A cPaneles szervereken csak a tárhely azonosítóhoz tartozó FTP felhasználóval van lehetőség SFTP...

Using FTP with Total Commander

Total Commander is an easy to use file manager with FTP support. Launch Total Commandert, then...