• Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
  • Services
    • Web Hosting
    • Reseller Hosting
    • VPS Hosting
    • Dedicated Hosting
  • Domains
  • Features
  • Company
    • About Us
    • Server Locations
    • Affiliates
    • Company Blog
  • Support
  • Client Login
Home/Article/Linux/How to move and copy files using SSH

How to move and copy files using SSH

Written by VernalWeb
August 8, 2017

The whole world is moving to Cloud Hosting or VPS for extended usability. VPS Hosting enables you to get the full control of your Hosting Environment. If you’re using an Unmanaged VPS you’ll need to execute everything using Commands. Let’s learn some commands to move & copy files using SSH.

How to move & copy files using SSH

Login to your VPS or Dedicated Linux Server using PuTTy

Login to your VPS: Log into your VPS using a SSH Tunnel Client i.e. PuTTy.

Move Files: Type the command below & press Enter to move files

mv index.html /path/to/directory/index.html

Copy Files: Type the command below & press Enter to copy files.

cp index.html /path/to/directory/index.html

Copying a whole folder can be done using the -r option of cp command. For example:

cp -r /path/to/folder /destination/path

Rename Files: The mv command which is used to move files can also be used to rename files as well. For example:

mv index.html newindex.html

Please note that Linux operating system is Key & Case sensitive. So you must have to type the exact file or folder name.


We hope this tutorial helps you find the perfect solution. If your like our tutorials, definitely you’ll love our support. All VernalWeb hosting plans include 24/7 support from our amazing inhouse support staff. Check out our web hosting plans and have your website migrated today!

Was this helpful?

Yes  No
Related Articles
  • How do I order Extra IPs For My VPS/Dedicated?
  • How to Use KVM with the Intel Core i5 4570
  • How to Change the Default SSH Port (Linux / Ubuntu / Debian)
  • How to Change the Default SSH Port (Linux / CentOS)
  • Automating FTP Backups in Linux
  • How to whitelist an IP Address in ConfigServer Firewall (CSF)

Didn't find your answer? Submit Ticket

Latest Articles

  • How to show Hidden Files (.htaccess) in cPanel File Manager
  • Setup a Domain Redirection in cPanel
  • Create a MySQL Database and a User from cPanel
  • Remove page extensions using .htaccess
  • Cron Job Usage & Policy
  • © 2014 - 2025 VernalWeb. All rights reserved.