How to upload the file to your root directory? (From Exoclick)

Hello everyone! I am trying to verify my site on,

I have an HTML that I need to upload to the root directory.

The directions were this:

"1. Download this file: (unique code with .html at the end)

  1. Upload the file to your root directory: Confirm the upload was successful by visiting this link:
  2. Click Verify Now."

I am trying to crack this. I have been trying all day, I want to know what I do on the console to upload the file to the host.

Please help! I am using Apache and Ubuntu 20.04


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


1. Copy a link location from this line of ExoClick’s guide: Download this file: (unique code with .html at the end).

2. Sign in to your DO control panel, and launch console to access your droplet. Log into the system with the user that you usually use for modifying your website content.

3. Change directory to your website root directory. Here is an example with default Apache’s website root directory

cd /var/www/html

4. Download the file

curl copied_link_location_in_step_1 > uniquecodewith.html  

Let us know how it went, please.