Enter root Password

The whole world is moving to Cloud 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.

  • Was this article Helpful ?
  • yes   no

Leave a Reply