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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


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.