ℹ️ Skipped - page is already crawled
| Filter | Status | Condition | Details |
|---|---|---|---|
| HTTP status | PASS | download_http_code = 200 | HTTP 200 |
| Age cutoff | PASS | download_stamp > now() - 6 MONTH | 0 months ago |
| History drop | PASS | isNull(history_drop_reason) | No drop reason |
| Spam/ban | PASS | fh_dont_index != 1 AND ml_spam_score = 0 | ml_spam_score=0 |
| Canonical | PASS | meta_canonical IS NULL OR = '' OR = src_unparsed | Not set |
| Property | Value |
|---|---|
| URL | https://www.siteground.com/tutorials/ssh/move-copy/ |
| Last Crawled | 2026-04-08 23:39:32 (1 day ago) |
| First Indexed | 2017-11-02 03:34:48 (8 years ago) |
| HTTP Status Code | 200 |
| Meta Title | How to Move and Copy Files via SSH - SiteGround Tutorials |
| Meta Description | Learn how to easily move one or more files/folders or copy them to a different location by using an SSH connection. |
| Meta Canonical | null |
| Boilerpipe Text | Often you will need to move one or more files/folders or copy them to a different location. You can do so using an SSH connection. The commands which you would need to use are
mv
(short from move) and
cp
(short from copy).
The
mv
command syntax looks like this:
mv original_file new_name
By executing the above command you will move (rename) the file original_file to new_name.
You can also use
mv
to move a whole directory and its content:
mv includes/* ./
This will move all files (and folders) from the includes/ directory to the current working directory.
In some cases, however, you will need to only update and move only files that were changed, which you can do by passing
-u
as an argument to the command:
mv -u includes/* admin/includes
The copy (
cp
) command works the same way as mv, but instead of moving the files/folders it copies them. For example:
cp original_file new_file
The command will copy the original_file file to new_file and will preserve the original one (the file will NOT be removed after it is copied).
cp
also accepts various arguments:
cp -R includes/ includes_backup/
-R
instructs cp to copy files recursively (for example, a whole directory). To overwrite already existing files you should use the
-f
argument:
cp -Rf includes/ admin/includes/
A more convenient way to copy files/folders is to use a 3rd party application, such as
Midnight Commander
. All our servers have
mc
installed and it is available by executing the
mc
command using the SSH Shell. Once inside the application you will see two sections – left and right. You can easily copy/move files from the left side directory to the right side using a semi-visual approach. You can even use your mouse to select files and function keys to execute commands.
You can see a picture of it below:
As you can see on the screenshot, there are numbers from 1 to 10 at the bottom of the console screen. These represent shortcuts to certain commands and are activated using the corresponding function key (i.e
F1
for help,
F5
to copy, etc). |
| Markdown | *Mobile nav button*
- [Home](https://www.siteground.com/ "SiteGround")
- Web Hosting
- [Web Hosting Grow your website with fast and secure web hosting](https://www.siteground.com/web-hosting.htm "Web Hosting")
- [Hosting for WordPress Start, migrate, and manage WordPress sites easily](https://www.siteground.com/wordpress-hosting.htm "For WordPress")
- [Cloud Hosting High-performance cloud plans for growing sites](https://www.siteground.com/cloud-hosting.htm "Cloud Hosting")
- [Domains Choose and register a domain with the help of AI](https://www.siteground.com/domain_names "Domains")
- [Agency Program Scale your agency with premium hosting](https://www.siteground.com/agency-hosting-program "Web Hosting for Agencies")
- [Reseller Hosting Resell hosting and manage multiple sites easily](https://www.siteground.com/reseller_hosting.htm "Reseller Hosting")
- [Affiliate Program High earnings, fast payouts, and top conversions](https://www.siteground.com/affiliates "Affiliate Program")
Customer success stories

“With SiteGround, you sleep like a baby with a pacifier! **Best service so far**.”
[Read More](https://www.siteground.com/blog/category/success-stories "Customer success stories")
- WordPress
- [Hosting for WordPress Start, migrate, and manage WordPress sites easily](https://www.siteground.com/wordpress-hosting.htm "For WordPress")
- [Hosting for WooCommerce Sell easily with reliable hosting for your store](https://www.siteground.com/woocommerce-hosting.htm "For WooCommerce")
- [Agency Program Scale your agency with premium hosting](https://www.siteground.com/agency-hosting-program "Web Hosting for Agencies")
Trusted by WordPress Experts
"I recommend SiteGround for all your WordPress projects – both new and established ones. Their service is stable, secure, and super fast thanks to their special in-house developed tools for WordPress users."

Syed Balkhi
Founder of the top WP educational site **wpbeginner.com**
- AI
- [AI Studio Your AI workspace to boost growth. ](https://www.siteground.com/ai-studio "AI Studio")
- [Coderick AI Build web apps by simply chatting with AI ](https://www.siteground.com/coderick-ai "Coderick AI")
- Website Building
- [Website Builder The simplest way to create a site ](https://www.siteground.com/website-builder "Website Builder")
- [Coderick AI Build web apps by simply chatting with AI ](https://www.siteground.com/coderick-ai "Coderick AI")
- [Ecommerce](https://www.siteground.com/ecommerce "Ecommerce")
- [Email Marketing](https://www.siteground.com/email-marketing "Email Marketing")
[Help](https://www.siteground.com/tutorials/ssh/move-copy/)
[Get in Touch](https://www.siteground.com/tutorials/ssh/move-copy/)
[Login](https://login.siteground.com/?lang=en "Login to Site Area")
Tutorials
- SSH Tutorials menu
- [Enable SSH in Site Tools](https://www.siteground.com/tutorials/ssh/enable-ssh/)
- [How to Use PuTTY](https://www.siteground.com/tutorials/ssh/putty/)
- [List Files and Directories](https://www.siteground.com/tutorials/ssh/listing/)
- [Create/Edit Files and Folders](https://www.siteground.com/tutorials/ssh/create-edit/)
- [Move and Copy Files](https://www.siteground.com/tutorials/ssh/move-copy/)
- [Delete Files and Folders](https://www.siteground.com/tutorials/ssh/deleting/)
- [Create and Extract Archives](https://www.siteground.com/tutorials/ssh/archives/)
- [Search for Files and Folders](https://www.siteground.com/tutorials/ssh/searching/)
- [Permissions and Ownership](https://www.siteground.com/tutorials/ssh/permissions-ownership/)
- [Environment Variables](https://www.siteground.com/tutorials/ssh/environment-variables/)
Get Expert Website Hosting
Choose website reliability and expertise with SiteGround\!
[Start now](https://www.siteground.com/web-hosting.htm%20)
[Home](https://www.siteground.com/tutorials/) / [SSH Tutorials](https://www.siteground.com/tutorials/ssh/) / How to Move and Copy Files via SSH
# How to Move and Copy Files via SSH
Summarize this article with:
Last update: Oct 13, 2021 • 1 min read
- SSH Tutorials menu
- [Enable SSH in Site Tools](https://www.siteground.com/tutorials/ssh/enable-ssh/)
- [How to Use PuTTY](https://www.siteground.com/tutorials/ssh/putty/)
- [List Files and Directories](https://www.siteground.com/tutorials/ssh/listing/)
- [Create/Edit Files and Folders](https://www.siteground.com/tutorials/ssh/create-edit/)
- [Move and Copy Files](https://www.siteground.com/tutorials/ssh/move-copy/)
- [Delete Files and Folders](https://www.siteground.com/tutorials/ssh/deleting/)
- [Create and Extract Archives](https://www.siteground.com/tutorials/ssh/archives/)
- [Search for Files and Folders](https://www.siteground.com/tutorials/ssh/searching/)
- [Permissions and Ownership](https://www.siteground.com/tutorials/ssh/permissions-ownership/)
- [Environment Variables](https://www.siteground.com/tutorials/ssh/environment-variables/)
Often you will need to move one or more files/folders or copy them to a different location. You can do so using an SSH connection. The commands which you would need to use are **mv** (short from move) and **cp** (short from copy).
The **mv** command syntax looks like this:
```
mv original_file new_name
```
By executing the above command you will move (rename) the file original\_file to new\_name.
You can also use **mv** to move a whole directory and its content:
```
mv includes/* ./
```
This will move all files (and folders) from the includes/ directory to the current working directory.
In some cases, however, you will need to only update and move only files that were changed, which you can do by passing **\-u** as an argument to the command:
```
mv -u includes/* admin/includes
```
The copy (**cp**) command works the same way as mv, but instead of moving the files/folders it copies them. For example:
```
cp original_file new_file
```
The command will copy the original\_file file to new\_file and will preserve the original one (the file will NOT be removed after it is copied).
**cp** also accepts various arguments:
```
cp -R includes/ includes_backup/
```
**\-R** instructs cp to copy files recursively (for example, a whole directory). To overwrite already existing files you should use the **\-f** argument:
```
cp -Rf includes/ admin/includes/
```
A more convenient way to copy files/folders is to use a 3rd party application, such as **Midnight Commander**. All our servers have **mc** installed and it is available by executing the **mc** command using the SSH Shell. Once inside the application you will see two sections – left and right. You can easily copy/move files from the left side directory to the right side using a semi-visual approach. You can even use your mouse to select files and function keys to execute commands.
You can see a picture of it below:

As you can see on the screenshot, there are numbers from 1 to 10 at the bottom of the console screen. These represent shortcuts to certain commands and are activated using the corresponding function key (i.e *F1* for help, *F5* to copy, etc).
Share this article
- Copied
SiteGround Chat

Have questions?
Chat with a team member, we're happy to help\!
Chat now
1
### Hosting Services
- [Web Hosting](https://www.siteground.com/web-hosting.htm)
- [Hosting for WordPress](https://www.siteground.com/wordpress-hosting.htm)
- [Hosting for WooCommerce](https://www.siteground.com/woocommerce-hosting.htm)
- [Reseller Hosting](https://www.siteground.com/reseller_hosting.htm)
- [Cloud Hosting](https://www.siteground.com/cloud-hosting.htm)
- [Domain Names](https://www.siteground.com/domain_names)
- [Web Hosting for Agencies](https://www.siteground.com/agency-hosting-program)
- [Affiliate Program](https://www.siteground.com/affiliates)
### Useful Resources
- [WordPress Tutorial](https://www.siteground.com/tutorials/wordpress/)
- [WordPress Plugins](https://www.siteground.com/wordpress-plugins)
- [WordPress Optimization Ebook](https://www.siteground.com/wordpress-speed-optimization-ebook)
- [WordPress Security Ebook](https://www.siteground.com/wordpress-security-ebook)
- [WooCommerce Ebook](https://www.siteground.com/woocommerce-ebook)
- [Start Selling Online Guide](https://www.siteground.com/start-selling-online-guide)
- [Small Business Guide](https://www.siteground.com/small-business-guide)
- [Holiday Marketing Guide](https://www.siteground.com/holiday-marketing-guide)
- [Post-Holiday Sales Guide](https://www.siteground.com/post-holidays-sales)
- [Knowledge Base](https://www.siteground.com/kb/)
### About Us
- [Company](https://www.siteground.com/company)
- [Academy](https://www.siteground.com/academy)
- [Technology](https://www.siteground.com/technology)
- [Site Tools](https://www.siteground.com/site-tools)
- [Data Centers](https://www.siteground.com/datacenters)
- [Support](https://www.siteground.com/support)
- [SiteGround Reviews](https://www.siteground.com/siteground_reviews.htm)
- [Success Stories](https://www.siteground.com/client-stories)
- [Brand Assets](https://www.siteground.com/brand-assets)
- [Careers](https://careers.siteground.com/)
- [Blog](https://www.siteground.com/blog)
- [Contact Us](https://www.siteground.com/company#contactus)
### Recent From Blog
[200+ client websites managed. Zero support calls in a year.](https://www.siteground.com/blog/client-story-stormdesign/ "200+ client websites managed. Zero support calls in a year.")
- 08 Apr, 2026
- [Read More](https://www.siteground.com/blog/client-story-stormdesign/)
[Build a Complete Online Store with SiteGround Ecommerce (Live Demo + Your Questions Answered)](https://www.siteground.com/blog/siteground-ecommerce-webinar-april-2026/ "Build a Complete Online Store with SiteGround Ecommerce (Live Demo + Your Questions Answered)")
- 07 Apr, 2026
- [Read More](https://www.siteground.com/blog/siteground-ecommerce-webinar-april-2026/)
Region:
We accept:
- [Legal](https://www.siteground.com/terms.htm)
- [Privacy](https://www.siteground.com/privacy.htm)
- [Do Not Sell or Share My Personal Information](https://www.siteground.com/viewtos/ccpa_rights_center)
- [Cookies](https://www.siteground.com/viewtos/cookies_policy)
© 2026 All rights reserved.
translate.site.layouts.pieces.footer.vatswitcher.}}template.layouts.prices\_exclude\_vat\_js\_vat\_price\_info [Show prices with VAT](https://www.siteground.com/tutorials/ssh/move-copy/) |
| Readable Markdown | Often you will need to move one or more files/folders or copy them to a different location. You can do so using an SSH connection. The commands which you would need to use are **mv** (short from move) and **cp** (short from copy).
The **mv** command syntax looks like this:
```
mv original_file new_name
```
By executing the above command you will move (rename) the file original\_file to new\_name.
You can also use **mv** to move a whole directory and its content:
```
mv includes/* ./
```
This will move all files (and folders) from the includes/ directory to the current working directory.
In some cases, however, you will need to only update and move only files that were changed, which you can do by passing **\-u** as an argument to the command:
```
mv -u includes/* admin/includes
```
The copy (**cp**) command works the same way as mv, but instead of moving the files/folders it copies them. For example:
```
cp original_file new_file
```
The command will copy the original\_file file to new\_file and will preserve the original one (the file will NOT be removed after it is copied).
**cp** also accepts various arguments:
```
cp -R includes/ includes_backup/
```
**\-R** instructs cp to copy files recursively (for example, a whole directory). To overwrite already existing files you should use the **\-f** argument:
```
cp -Rf includes/ admin/includes/
```
A more convenient way to copy files/folders is to use a 3rd party application, such as **Midnight Commander**. All our servers have **mc** installed and it is available by executing the **mc** command using the SSH Shell. Once inside the application you will see two sections – left and right. You can easily copy/move files from the left side directory to the right side using a semi-visual approach. You can even use your mouse to select files and function keys to execute commands.
You can see a picture of it below:

As you can see on the screenshot, there are numbers from 1 to 10 at the bottom of the console screen. These represent shortcuts to certain commands and are activated using the corresponding function key (i.e *F1* for help, *F5* to copy, etc). |
| Shard | 26 (laksa) |
| Root Hash | 3704446036344021026 |
| Unparsed URL | com,siteground!www,/tutorials/ssh/move-copy/ s443 |