Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
Close

Search

Client Portal
B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

B2B Hosting Club B2B Hosting Club B2B Hosting Club

Fast & Secure Web Hosting in Pakistan

  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
  • Web Hosting
    • Shared Hosting
    • E-commerce Hosting
    • WordPress Hosting
    • Cloud Hosting
    • Python Hosting
    • Dedicated Hosting
    • Unlimited Hosting
    • Business Hosting
    • DMCA Ignored Hosting
    • SMM PANEL HOSTING
    • VPS Hosting
    • Student Hosting
    • Business Email
    • PHP Hosting
    • Storage Hosting
  • Reseller Hosting
    • cpanel Reseller Hosting
    • Master Reseller Hosting
    • Alpha Reseller Hosting
    • Agency Reseller Hosting
    • DMCA Ignored Reseller Hosting
  • Servers
    • Managed Dedicated Servers
    • Virtual Dedicated Server
    • Cloud Dedicated Server
    • NVMe Dedicated Servers
    • GPU Server
    • Bare Metal Server
    • Pk Based Dedicated Server
    • DMCA Ignored Server
    • Gaming server
    • Android Emulator VPS
    • kubernetes Hosting
    • Streaming Server
    • Rendering Services
    • Windows Server
    • Forex Server
  • VPS/VM/RDP
    • Virtual Machine
      • centos webpanel vm
      • vesta cp vm
      • kloxo mr vm
      • Ubuntu VPS
      • Debian VPS
    • Windows VPS
      • Win 11 Server/VPS
      • Win 10 Server/VPS
      • Win 7 Server/ VPS
      • Windows 2025/2022 VPS
      • Windows 2019/2016 VPS
    • Linux VPS
      • CentOS VPS
      • Ubuntu VPS
      • Debian VPS
    • VPS
      • Unmanaged VPS
      • Managed VPS
      • Storage VPS
    • RDP VPS
    • Pk Based Dedicated VPS
  • Solutions
    • DMCA Ignored Hosting
    • Proxies
    • License
    • SSL Certificated
    • SEO
    • Web Development
  • AI
    • Ollama Hosting
    • Gemma Hosting
    • ComfyUI Hosting
    • Mistral Hosting
    • Chatterbox TTS Hosting
    • Chroma DB Hosting
    • VLLM Hosting
    • Qwen Hosting
    • Stable Diffusion
    • Bark Hosting
    • PaddleOCR Hosting
    • Milvus Hosting
    • LM Studio Hosting
    • Qwen3-VL Hosting
    • ChatGPT Hosting
    • XTTS-V2 Hosting
    • Wan Hosting
    • Keras Hosting
    • DeepSeek Hosting
    • OpenAl Whisper
    • OpenAI GPT- OSS
    • Kokoro TTS Hosting
    • TensorFlow Hosting
    • PyTorch Hosting
    • LLaMA Hosting
    • Flux.1 Hosting
    • Phi Hosting
    • Coqui TTS Hosting
    • Qdrant Hosting
    • Android Emulator
  • Domain
    • Domain Register
    • .Pk Domain Register
    • Domains Checker
    • Domains Transfer
    • PKNIC Prepaid Cards
  • Help Center
    • About Us
    • Contact Us
    • Blog
    • Affiliate Program
Close

Search

Client Portal
Home/Linux Hosting/How to Transfer Files from Windows to Linux Using CMD
How to Transfer Files from Windows to Linux Using CMD

How to Transfer Files from Windows to Linux Using CMD

Introduction

While there are various methods available for file transfers from a Windows system to a Linux system, using the Command lines provides a straightforward and reliable approach. In this guide, we’ll walk you through the step-by-step process, highlighting the necessary commands and techniques to seamlessly transfer your files from Windows to Linux.

Prerequisites

Verify Your Remote Linux Server is Ready
If you have ordered one from B2BHOSTINGCLUB, you will receive an email containing the information of your VPS, including server IP and login credentials. You can also obtain the information on the overview page in the control panel.

Steps to Transfer Files from Windows to Linux Using Command Prompt

Step 1. Open the Command Prompt in Local Windows

Search cmd in the search bar, and double-click the Command Prompt to open it. Or press the Windows key + R, then type cmd or cmd.exe in the Run command box, and press Enter.

Open Command Prompt

Then, you should see the command prompt interface as below.

The Command Prompt interface
Step 2. Transfer Files between Local Windows and Remote Linux

Before the transfer, we will explain some terms used in the command. When using the command, you should replace these terms with the actual value.

filename.extension: it’s the name of a file and file extension that’s to be transferred. In this case, we may use mydata.txt and website.txt.
folderName: it’s the name of a folder that’s to be transferred. In this case, we may use the Website folder.
customPort: it’s the custom port you use to connect to your remote Linux server.
localFilePath: it’s the path on your local Windows PC.
username: it’s the username used to log into the remote Linux server.
remoteServerAddress: it’s the server IP of the remote Linux server.
remoteFilePath: it’s the path on the remote Linux server. In this case, we use /home/administrator.

2.1 Transfer a File from Local to Remote Server

For demonstration purposes, we have created a file in the desktop>website named “mydata.txt”. First, we need to go to the file’s directory by inputting cd, followed by the file path on our local Windows. In this case, the file is located at desktop\website. Therefore, we enter the following command.

cd desktop/website

After that, you can see that we navigate to the folder where the file is located.

Navigate to the file path

Then, we use the following command to transfer the “mydata.text” from local Window to the remote Linux server.

scp filename.extension username@remoteServerAddress:remoteFilePath

After entering the command, you will be prompted for the password for connecting to the remote server. Input the password and hit the Enter button, the file will be transferred. In this case, we have transferred the local file mydata.txt (located at desktop/website) to the /home/administrator directory on the remote Linux server.

Transfer files from Local Windows to Remote Linux

2.2 Transfer a File from Remote Server to Local

You can run the following command to copy a file from the remote server to your local Windows PC.

scp username@remoteServerAddress:remoteFilePath/filename.extension localFilePath

In this case, we have transferred the mydata.txt (located at home/administrator on the remote server) to the desktop directory on the local server.

Transfer files from the remote server to the local server

2.3 Transfer Multiple Files from Local to Remote Server

The SCP command also allows you to transfer multiple files in a single command. Navigate to the file folder and run the following command.

scp localFilePath/filename1.extension localFilePath/filename2.extension username@remoteServerAddress:remoteFilePath

In this case, we have transferred two local files mydata.txt (located at desktop) and mywebsite.txt (located at desktop/website) to the /home/administrator directory on the remote Linux server.

Transfer multiple files from local to the remote server

2.4 Transfer a Folder from Local to Remote Server

Besides files, the SCP command also allows you to securely copy folders between the local and remote server. Use the following command to copy a folder from local to the remote server.

scp -r localFilePath/folderName username@remoteServerAddress:remoteFilePath

In this case, we have transferred the local Website folder, which contains two files mydata.txt and mywebsite.txt, to the /home/administrator directory on the remote Linux server.

Transfer a folder from local to the remote server

2.5 Transfer a File Faster

Adding the -c option after the scp command will compress the file while it’s being transferred. Once the file reaches its destination, it returns to its normal size.

scp -c localFilePath/filename.extension username@remoteServerAddress:remoteFilePath

In this case, we have transferred the local Website folder, which contains two files mydata.txt and mywebsite.txt, to the /home/administrator directory on the remote Linux server.

Transfer a folder from local to the remote server

2.6 Transfer a File Using a Custom Port

The scp command uses the 22 port by default. If you have changed to a custom port, please run the following command to transfer a file. Make sure to capitalize the P.

scp -P customPort localFilePath/filename.extension username@remoteServerAddress:remoteFilePath

In this case, we have transferred the local file mydata.txt to the /home/administrator directory on the remote Linux server using a custom port.

Transfer a file using a custom port from local to the remote server
Step 3. Verify the File has been Transferred

First, connect to your Linux server. If you need assistance in this area, please refer to how to connect to a Linux server remotely.

Log in to your Linux server

Then, Use a preferred editor to open the file. Here, we use the “Nano editor.” In this example, the remoteFilePath is /home/administrator, and the filename.extension can be mydata.txt, mywebsite.txt, and myweb.txt.

nano remoteFilePath/filename.extension
Use the nano editor to open a file
Open the myweb file

We can also check if the folder has been copied to the remote server. Go to the /home/administrator directory and check if the Website folder is there.

cd /home/administrator
ll
Check if the Website folder has been transferred

Conclusion

In conclusion, transferring files from a local Windows machine to a remote Linux server using the command prompt (CMD) is a powerful and efficient method for managing data. By following the step-by-step guide outlined in this blog, you can establish a secure connection, utilize the SCP (Secure Copy Protocol) command, and successfully transfer files between these two platforms.

Other Methods to Transfer Files between Windows and Linux Server

How to Transfer Files from Windows to Linux Using WinSCP

Author

b2b hosting

Follow Me
Other Articles
How to Install the ModSecurity Apache Module
Previous

How to Install the ModSecurity Apache Module

How to Use VNC to Access a Remote Linux Server
Next

How to Use VNC to Access a Remote Linux Server

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© Copyright 2026 — B2B Hosting Club. All rights reserved. Design By MME.