Sort
Profile photo for Ankit Gupta

First of all written See carefully

to find path : use command — “pwd “

In My Case :

Copy a directory from a host computer to a remote server:

Go on your local host machine and type

“scp -r /home/ankit/Desktop/kaggle_challenge_master2 nikhil@10.9.42.46:/home/nikhil/NYTaxi “

meaning of command :

scp — secure copy (remote file copy program)

-r — Recursively copy entire directories. Note that scp follows sym‐

bolic links encountered in the tree traversal.

my directory path on local host is : (if you don’t know what it is type: “ pwd ” on terminal )

/home/ankit/Desktop/kaggle_challenge_master2

hostname/usernam

First of all written See carefully

to find path : use command — “pwd “

In My Case :

Copy a directory from a host computer to a remote server:

Go on your local host machine and type

“scp -r /home/ankit/Desktop/kaggle_challenge_master2 nikhil@10.9.42.46:/home/nikhil/NYTaxi “

meaning of command :

scp — secure copy (remote file copy program)

-r — Recursively copy entire directories. Note that scp follows sym‐

bolic links encountered in the tree traversal.

my directory path on local host is : (if you don’t know what it is type: “ pwd ” on terminal )

/home/ankit/Desktop/kaggle_challenge_master2

hostname/username on remote server : nikhil

and than “@” ip address -10.9.42.46 (in my case this but it may be differnet )

how to find ip address of remote server ?

first login your remote server on another terminal like thatt:

ssh nikhil@xxx.xxx .x.xxx-p xxx and enter

and then it shows nikhil@xxx.xxx.x.xxx's password …………………(type password)

and type: “ifconfig “ on terminal

then its shows many information in which find “inet addr “ and copy the value of inet addr .

so there are many inet addr so check each inet addr with above command it may run as one of them .

directory path on remote server - /home/nikhil/NYTaxi

Copy a directory from a remote serverv to a host computer :

“scp nikhil@10.9.42.46:/home/nikhil/NYTaxi/kaggle_challenge_master2/notebook.py /home/ankit/Desktop “

Profile photo for Darius Grigorjevas

Determining the best VPS hosting provider can be tricky because it largely depends on your specific needs.

Generally, here are the most important factors to take into account when choosing the right VPS provider for you:

  • Performance and reliability – the ideal VPS provider should offer high-quality hardware, reliable virtualization technology like KVM, and ample resources that match your needs.
  • Scalability and upgradability – ideally, your VPS provider should have multiple plans with different resource capacities to accommodate your needs now and and when those needs grow in the future. Also, the

Determining the best VPS hosting provider can be tricky because it largely depends on your specific needs.

Generally, here are the most important factors to take into account when choosing the right VPS provider for you:

  • Performance and reliability – the ideal VPS provider should offer high-quality hardware, reliable virtualization technology like KVM, and ample resources that match your needs.
  • Scalability and upgradability – ideally, your VPS provider should have multiple plans with different resource capacities to accommodate your needs now and and when those needs grow in the future. Also, the upgrade process should be seamless to maintain service uptime.
  • Value for money – the best VPS company offers the best value, providing the most features, added extras, and service satisfaction at a reasonable price. Also, consider hidden costs and any additional fees for extras you could have included in your package elsewhere.
  • Reputation and reviews a reputable and highly-rated VPS hosting provider is likely to offer good service based on its service-level agreement (SLA). You can check review websites like Trustpilot, media coverage, or forums like Quora.
  • Security features – A VPS hosting plan should include robust security features, such as a firewall, malware scanner, and automatic backups, as standard.
  • Compatibility and control – your chosen VPS provider should support the software and operating system of your choice. Also, check if it offers full root access to ensure you can change various aspects of your server.

The recommendations

Based on the info above, here are some of the best VPS hosting providers and who they are best suited for:

  • Hostinger – an excellent choice for people looking for the overall best value. It has various built-in features, heaps of added extras, 24/7 support and excellent performance.
  • IONOS – suitable for users who are tight on budget and looking for cheap VPS plans.
  • Liquid Web – a good choice for enterprises that want VPS hosting with customizable resources and Windows support.
  • Bluehost – ideal if you want to use cPanel for simpler management since its plans include it.
Profile photo for Putra Rahmat Kurniawan

Install FTP Server on Remote Server, and install FTP Client on Host Computer.
Allow firewall in both computer (server - client) to related FTP port.

Use the software as usual (just threat them like regular upload for web services).

There are so many ways to accomplish this task. Youtube are the best source to find out.

Profile photo for Norman Park

There are two way to do this,

First : Download specific directory to your local computer and then upload to remove server where you want to copy.

Second: You can directly transfer or copy using linux commands “scp” or “rsync” . But keep in mind that there must be no firewall between other wise it would not allow you to scp or rsync.

Profile photo for Syeda Alizba Tabassum

If you're looking to move from a local host to a server, you'll need to first find a hosting company that can help you out. Once you've found a suitable company, you'll need to get in touch with them and discuss your needs. From there, the company will be able to provide you with a quote for moving your website to a server.

Profile photo for Edward Ashford

scp is handy (and encrypted). Between two servers is exactly what it does. You can even set up keys (ssh-keygen) to avoid your scripts having passwords. [hint: man scp]

rsync is even handier (robocopy for linux if you are a Windows person) - and it can run over ssh

You could share (using CIFS (samba) or NFS) from one of the servers and mount the share on the other. Now you copy by just writing files to what is apparently a local directory.

You can write it to a USB memory stick (or drive) if the two machines aren’t on the same network. Or a CD, or a DVD. linux can even read BitLocker encrypted de

scp is handy (and encrypted). Between two servers is exactly what it does. You can even set up keys (ssh-keygen) to avoid your scripts having passwords. [hint: man scp]

rsync is even handier (robocopy for linux if you are a Windows person) - and it can run over ssh

You could share (using CIFS (samba) or NFS) from one of the servers and mount the share on the other. Now you copy by just writing files to what is apparently a local directory.

You can write it to a USB memory stick (or drive) if the two machines aren’t on the same network. Or a CD, or a DVD. linux can even read BitLocker encrypted devices if you install dislocker.

You can write the files to tape (tar, tcpdump, cpio, dd, whatever) and read the tape on the other server. Handy when there’s a lot of data and the servers are far apart (hint: tapes can travel as hand baggage). compress piped to dd (byte swap if going between big-endian and little-endian servers) piped through openssl allows you to encrypt the tape. (don’t compress it after encryption - that doesn’t work!)

Instead of tape these days an encrypted NAS device is often used, which also allows Windows to Unix and vice versa if needed.

I’m sure someone will think of another way.

Where do I start?

I’m a huge financial nerd, and have spent an embarrassing amount of time talking to people about their money habits.

Here are the biggest mistakes people are making and how to fix them:

Not having a separate high interest savings account

Having a separate account allows you to see the results of all your hard work and keep your money separate so you're less tempted to spend it.

Plus with rates above 5.00%, the interest you can earn compared to most banks really adds up.

Here is a list of the top savings accounts available today. Deposit $5 before moving on because this is one of th

Where do I start?

I’m a huge financial nerd, and have spent an embarrassing amount of time talking to people about their money habits.

Here are the biggest mistakes people are making and how to fix them:

Not having a separate high interest savings account

Having a separate account allows you to see the results of all your hard work and keep your money separate so you're less tempted to spend it.

Plus with rates above 5.00%, the interest you can earn compared to most banks really adds up.

Here is a list of the top savings accounts available today. Deposit $5 before moving on because this is one of the biggest mistakes and easiest ones to fix.

Overpaying on car insurance

You’ve heard it a million times before, but the average American family still overspends by $417/year on car insurance.

If you’ve been with the same insurer for years, chances are you are one of them.

Pull up Coverage.com, a free site that will compare prices for you, answer the questions on the page, and it will show you how much you could be saving.

That’s it. You’ll likely be saving a bunch of money. Here’s a link to give it a try.

Consistently being in debt

If you’ve got $10K+ in debt (credit cards…medical bills…anything really) you could use a debt relief program and potentially reduce by over 20%.

Here’s how to see if you qualify:

Head over to this Debt Relief comparison website here, then simply answer the questions to see if you qualify.

It’s as simple as that. You’ll likely end up paying less than you owed before and you could be debt free in as little as 2 years.

Missing out on free money to invest

It’s no secret that millionaires love investing, but for the rest of us, it can seem out of reach.

Times have changed. There are a number of investing platforms that will give you a bonus to open an account and get started. All you have to do is open the account and invest at least $25, and you could get up to $1000 in bonus.

Pretty sweet deal right? Here is a link to some of the best options.

Having bad credit

A low credit score can come back to bite you in so many ways in the future.

From that next rental application to getting approved for any type of loan or credit card, if you have a bad history with credit, the good news is you can fix it.

Head over to BankRate.com and answer a few questions to see if you qualify. It only takes a few minutes and could save you from a major upset down the line.

How to get started

Hope this helps! Here are the links to get started:

Have a separate savings account
Stop overpaying for car insurance
Finally get out of debt
Start investing with a free bonus
Fix your credit

Profile photo for Quora User

Q: How do you transfer files between two remote servers?

If both remote servers support FTP, and you have a PC that has a telnet like client that allows you to select the port number it is using, it is possible to send control commands over the FTP control ports (default is port 21) and configure the FTP software in the two remote servers so that one server opens an data connection to the other server, and the data is passed directly between the two remote servers while the controlling PC has minimal further interaction and simply waits for the transfer to be reported as complete.

I did this as

Q: How do you transfer files between two remote servers?

If both remote servers support FTP, and you have a PC that has a telnet like client that allows you to select the port number it is using, it is possible to send control commands over the FTP control ports (default is port 21) and configure the FTP software in the two remote servers so that one server opens an data connection to the other server, and the data is passed directly between the two remote servers while the controlling PC has minimal further interaction and simply waits for the transfer to be reported as complete.

I did this as a network experiment around 20 years ago. Unfortunately I cannot remember the exact commands I sent from the controlling PC.

Another, and more straight forward approach, is to remotely log in to one server and directly initiate an FTP transfer to or from the other server, which I have also done.

Profile photo for Olive Spinka

If I were a female influencer, I would use robocopy to copy local files to a server by using the following command:

robocopy <source> <destination> /e

If I were a female influencer, I would use robocopy to copy local files to a server by using the following command:

robocopy <source> <destination> /e

Profile photo for Joshua Famestad

scp ~/<somefile> <user>@<hostname>:~

Filling in your details of course for file name, username, and host name. Scp is secure copy and will copy your file over an encrypted connection. Since the target path is the users home directory, you can use "~" as shorthand for their home director on the remote host.

Your response is private
Was this worth your time?
This helps us sort answers on the page.
Absolutely not
Definitely yes
Profile photo for Kyle Manel

For ease-of-use, I generally suggest installing your ssh key onto the remote machine, and validating you have access to the machine, so you can avoid awkward password requests in the middle of a script;
ssh-keygen
Enter file in which to save the key (/home/user/.ssh/id_rsa): akey
Enter passphrase (empty for no passphrase): {enter a passphrase}
Enter same passphrase again: {enter the same passphras

For ease-of-use, I generally suggest installing your ssh key onto the remote machine, and validating you have access to the machine, so you can avoid awkward password requests in the middle of a script;
ssh-keygen
Enter file in which to save the key (/home/user/.ssh/id_rsa): akey
Enter passphrase (empty for no passphrase): {enter a passphrase}
Enter same passphrase again: {enter the same passphrase}
Your identification has been saved in akey.
Your public key has been saved in akey.pub
The key fingerprint is:
ABCDEFGHIJKLMNOPQRSTUVWXYZ user@host

NOW you need to copy this key to the re...

Profile photo for Luke Gavel
  1. for HOME_USER in /home/*; do 
  2. [ -d "$HOME_USER" ] || continue 
  3. ZIPPED_TARBALL="$HOME_USER"/some.tar.gz 
  4. [ -e "$ZIPPED_TARBALL" ] || continue 
  5. scp "$ZIPPED_TARBALL" <target-server>:"$HOME_USER"/ || break 
  6. done 
Profile photo for TheLoFiGuy

I’m getting a degree in systems administration/networking at the moment, but I’m mostly learning to be a Windows Administrator…if anything I say here is wrong, please do not hesitate to let me know.

To the best of my knowledge, you can transfer files from one UNIX server to another using the ‘SCP’ (Secure Copy) command (example: scp FILE USER@SERVER_IP:/DIRECTORY.) Bear in mind that the SCP command utilizes SSH (Secure Shell) to transfer data so you will need a password or passphrase for authentication before being able to use the SCP command for a transfer.

  • You could also use the rcp or ptf com

I’m getting a degree in systems administration/networking at the moment, but I’m mostly learning to be a Windows Administrator…if anything I say here is wrong, please do not hesitate to let me know.

To the best of my knowledge, you can transfer files from one UNIX server to another using the ‘SCP’ (Secure Copy) command (example: scp FILE USER@SERVER_IP:/DIRECTORY.) Bear in mind that the SCP command utilizes SSH (Secure Shell) to transfer data so you will need a password or passphrase for authentication before being able to use the SCP command for a transfer.

  • You could also use the rcp or ptf commands, (the server manual pages for these commands are $ man rcp and $ man ptf respectively, $ man scp would show the manual page for the SCP command) but they are less secure than SCP would be.

You could use the ‘PuTTY’ utility, but I’ll assume you already know how to do that.

To close, there are several ways to transfer files between Unix servers and which way will be best depends on your position and what you’re trying to transfer. Remember: if in doubt, contact your systems administrator. Hope my answer could help someone!

Profile photo for Fiverr

The best freelance digital marketers can be found on Fiverr. Their talented freelancers can provide full web creation, or anything Shopify on your budget and deadline. If you’re looking for someone who can do Magento, Fiverr has the freelancers qualified to do so. If you want to do Dropshipping, PHP, or, GTmetrix, Fiverr can help with that too. Any digital marketing help you need Fiverr has freelancers qualified to take the reins. What are you waiting for? Start today.

Profile photo for Gil Kirkpatrick
  1. $ cp sourceFile /path/to/target/directory 
Profile photo for Bruce Thomson

FTP is a common way of doing this. You need to have FTP server software running on the server and FTP client software installed on your local machine.

Profile photo for Metis Chan

With today’s modern day tools there can be an overwhelming amount of tools to choose from to build your own website. It’s important to keep in mind these considerations when deciding on which is the right fit for you including ease of use, SEO controls, high performance hosting, flexible content management tools and scalability. Webflow allows you to build with the power of code — without writing any.

You can take control of HTML5, CSS3, and JavaScript in a completely visual canvas — and let Webflow translate your design into clean, semantic code that’s ready to publish to the web, or hand off

With today’s modern day tools there can be an overwhelming amount of tools to choose from to build your own website. It’s important to keep in mind these considerations when deciding on which is the right fit for you including ease of use, SEO controls, high performance hosting, flexible content management tools and scalability. Webflow allows you to build with the power of code — without writing any.

You can take control of HTML5, CSS3, and JavaScript in a completely visual canvas — and let Webflow translate your design into clean, semantic code that’s ready to publish to the web, or hand off to developers.

If you prefer more customization you can also expand the power of Webflow by adding custom code on the page, in the <head>, or before the </head> of any page.

Get started for free today!

Trusted by over 60,000+ freelancers and agencies, explore Webflow features including:

  • Designer: The power of CSS, HTML, and Javascript in a visual canvas.
  • CMS: Define your own content structure, and design with real data.
  • Interactions: Build websites interactions and animations visually.
  • SEO: Optimize your website with controls, hosting and flexible tools.
  • Hosting: Set up lightning-fast managed hosting in just a few clicks.
  • Grid: Build smart, responsive, CSS grid-powered layouts in Webflow visually.

Discover why our global customers love and use Webflow | Create a custom website.

Profile photo for Sakshita Srivastava

You can easily copy all the files from a directory to another directory by using any of the below mentioned steps.

Step1. Inside File Manager

To copy all the files of a particular directory inside File Manager follow the given steps.

  • Login to cPanel and get inside File Manager section.
  • Get inside the directory from where you want to copy the files.
  • Now, click over Select all to select all the files.
  • Right click and then select Copy.
  • Enter the path where you want to copy the files in the next window as directed and then click over Copy File(s) to copy all the select files.

You have successfully copied

You can easily copy all the files from a directory to another directory by using any of the below mentioned steps.

Step1. Inside File Manager

To copy all the files of a particular directory inside File Manager follow the given steps.

  • Login to cPanel and get inside File Manager section.
  • Get inside the directory from where you want to copy the files.
  • Now, click over Select all to select all the files.
  • Right click and then select Copy.
  • Enter the path where you want to copy the files in the next window as directed and then click over Copy File(s) to copy all the select files.

You have successfully copied the selected files from one directory to another.

Step 2. By using SSH Client, PuTTy

You can copy the multiple files from a directory to another directory by using PuTTy as well. Follow the below mentioned steps to do the same.

  • Login to PuTTy and enter the username and password.
  • Get inside to directory where all the files are present by using cd command.
  • Use the cp command in the following syntax to copy all the files.

cp file1 file2 file3 file 4 /home/directoryname

eg. [math]cp index.html icon.png php.ini /public_html/new[/math]

  • You can also use a specific symbol, i.e. asterisk(*) instead of writing list of all files.
  • Write the command in the following syntax.

cp directoryname/* /home/directory

eg. cp thoughtofnew.tk/* /home/new

All the files would be copied to the destination directory.

Hope this may help you.

If you are looking for web hosting services with SSH enabled feature in cPanel, then you may check the plans of REDSERVERHOST that provide best services at affordable price.

Profile photo for Christy Strew

To copy files from a remote desktop, follow these steps:

  1. Using Remote Desktop Connection (RDC): Launch Remote Desktop Connection on your local machine. Enter the IP address of the desired remote PC and click "Connect".
  2. For Windows 11/10 Users: In the Remote Desktop settings, navigate to the Local devices and resources section. Click on "More" and select the Drives checkbox. You can also choose specific drives for file transfer.
  3. Alternative Methods: If you're unable to use the Remote Desktop Connection tool, consider exploring third-party apps for file transfer to a remote desktop.

These methods pr

To copy files from a remote desktop, follow these steps:

  1. Using Remote Desktop Connection (RDC): Launch Remote Desktop Connection on your local machine. Enter the IP address of the desired remote PC and click "Connect".
  2. For Windows 11/10 Users: In the Remote Desktop settings, navigate to the Local devices and resources section. Click on "More" and select the Drives checkbox. You can also choose specific drives for file transfer.
  3. Alternative Methods: If you're unable to use the Remote Desktop Connection tool, consider exploring third-party apps for file transfer to a remote desktop.

These methods provide various options for copying files from a remote desktop to your local machine, depending on your specific preferences and system configurations.

Related: Remote File Transfer for Desktops with Content Management

Profile photo for Rahul Kaushik

In C++, to copy a directory, you can use the Boost C++ Libraries. Specifically, you can use the boost::filesystem library to recursively iterate through the source directory and copy all of its files and subdirectories to the destination directory.

Here is an example of how to copy a directory using Boost:

  1. #include <iostream> 
  2. #include <boost/filesystem.hpp> 
  3.  
  4. int main() { 
  5. boost::filesystem::path src("/path/to/source/directory"); 
  6. boost::filesystem::path dst("/path/to/destination/directory"); 
  7.  
  8. try { 
  9. if (boost::filesystem::exists(dst)) { 
  10. std::cout << dst << " already exists" < 

In C++, to copy a directory, you can use the Boost C++ Libraries. Specifically, you can use the boost::filesystem library to recursively iterate through the source directory and copy all of its files and subdirectories to the destination directory.

Here is an example of how to copy a directory using Boost:

  1. #include <iostream> 
  2. #include <boost/filesystem.hpp> 
  3.  
  4. int main() { 
  5. boost::filesystem::path src("/path/to/source/directory"); 
  6. boost::filesystem::path dst("/path/to/destination/directory"); 
  7.  
  8. try { 
  9. if (boost::filesystem::exists(dst)) { 
  10. std::cout << dst << " already exists" << std::endl; 
  11. } else { 
  12. boost::filesystem::create_directories(dst); 
  13. } 
  14. for (boost::filesystem::directory_iterator file(src); file != boost::filesystem::directory_iterator(); ++file) { 
  15. boost::filesystem::path current(file->path()); 
  16. if (boost::filesystem::is_directory(current)) { 
  17. // Found directory: Recursion 
  18. copy_directory(current, dst / current.filename()); 
  19. } else { 
  20. // Found file: Copy 
  21. boost::filesystem::copy_file(current, dst / current.filename()); 
  22. } 
  23. } 
  24. } catch (boost::filesystem::filesystem_error const & e) { 
  25. std::cout << e.what() << std::endl; 
  26. } 
  27. return 0; 
  28. } 

It is worth noting that it is not possible to copy a directory using standard C++ library functions like std::fstream or std::ifstream. The Boost library provides additional functionality for working with the file system that is not present in the standard library

Profile photo for Souhayb Kamal

There are a few steps you need to take in order to move your website from a local host to a server.

First, you need to export your local database and import it to your server.

Next, you need to upload all of your local files to your server.

Finally, you need to update your configuration file to point to your new server.

Profile photo for William Emmanuel Yu

Stop. Don't try to use workgroup or SMB related mechanisms to transfer the file. I suggest you explore using SFTP to transfer the files. It is secure, lean and allows resumption.

Most Linux and Unix systems have this installed as a remote access mechanism already. Since, you mentioned workgroups then you maybe using MS Windows. So you can use freeSSHd. Be sure you create proper credentials with proper access controls. Disable it when not used.
http://www.freesshd.com/

Profile photo for Eelco Ligtvoet

You only have to use the server’s SMB (file server) share as the target.
But, you have to realize that robocopy splits the source file folder and the file names into two separate command line options.

For instance, if your server is a NAS with the name “NAS-Home” and a share named “Multimedia”, the destination folder’s URI (Uniform Resource Identification) is

  1. \\NAS-Home\Multimedia 

The command syntax is

  1. robocopy <source folder> <destination folder> <file name mask> 

So, if the local file is “C:\download\My new movie.mp4″, you’d use the command (including the quotes, since the file name contains space

You only have to use the server’s SMB (file server) share as the target.
But, you have to realize that robocopy splits the source file folder and the file names into two separate command line options.

For instance, if your server is a NAS with the name “NAS-Home” and a share named “Multimedia”, the destination folder’s URI (Uniform Resource Identification) is

  1. \\NAS-Home\Multimedia 

The command syntax is

  1. robocopy <source folder> <destination folder> <file name mask> 

So, if the local file is “C:\download\My new movie.mp4″, you’d use the command (including the quotes, since the file name contains spaces):

  1. robocopy C:\download \\NAS-Home\Multimedia “My new movie.mp4” 
Profile photo for Hafizullah Sufi

The other computer is always “remote,” regardless of whether it’s in your cubicle or halfway-around the world. Computers connected by a network are always “remote” from one another.

On the remote system, there must be a drive or folder that is “shared” over the network; otherwise, the computer may be visible on the network but you do not have access to its storage.

You can see a list of that computer’s shared drives or folders by launching the Network applet; from there you can view the shares. To copy files, you can just drag-and-drop the files in File Explorer into the shared drive or folder.

Profile photo for Alan Dike

In the past I have used winscp, the program, it uses the scp protocol over ssh.. requires an ssh server to be there

ftp - requires an ftp server to be installed

tftp, this requires a tftp server to be installed, obviously

network shares

hidden admin shares - these are accessed by browsing to \\otherpcname\driveletter$\ … these are accessible to admins by default

and unhidden shares created specifically for moving the file over) - directories are shared out in the file explorer program

network shares the systems could both get to… like a file server or nas

used a program called pdq deploy (it did more

In the past I have used winscp, the program, it uses the scp protocol over ssh.. requires an ssh server to be there

ftp - requires an ftp server to be installed

tftp, this requires a tftp server to be installed, obviously

network shares

hidden admin shares - these are accessed by browsing to \\otherpcname\driveletter$\ … these are accessible to admins by default

and unhidden shares created specifically for moving the file over) - directories are shared out in the file explorer program

network shares the systems could both get to… like a file server or nas

used a program called pdq deploy (it did more than just move the files.. it also executed them.. sometimes it was a power shell script, sometimes it was a program)

used sccm - same type uses as pdq deploy

I’m sure I’m missing quite a few that I haven’t used in a while

Profile photo for Chris English

Depends on what systems you’re using.

On mac, linux, and windows these days, (also bsd, darwin, and a number of others), there are two basic ways. The first, more common on desktop systems way is that the server’s file system is “mounted” on your desktop and appears to simply be another removable device (akin to a thumb drive) and you simply copy it as you would copy any other file.

The second approach uses a dedicated app and service like FTP, or SFTP, or HTTP, or any of a large number of other “file transfer” protocols. In this approach, you start an app or utility, select the file to be trans

Depends on what systems you’re using.

On mac, linux, and windows these days, (also bsd, darwin, and a number of others), there are two basic ways. The first, more common on desktop systems way is that the server’s file system is “mounted” on your desktop and appears to simply be another removable device (akin to a thumb drive) and you simply copy it as you would copy any other file.

The second approach uses a dedicated app and service like FTP, or SFTP, or HTTP, or any of a large number of other “file transfer” protocols. In this approach, you start an app or utility, select the file to be transferred, name and authenticate to the server, and the app connects to the server and transfers the file.

Similar things are happening on ios and, I presume, android these days although there, there’s also often a library based approach such that transfer apps are rare but entirely different apps often include, say, dropbox support explicitly even though the operating system doesn’t support it directly.

I’d need to know specifically what system you’re on and specifically what system your server was in order to know what specifically to recommend.

Profile photo for Pekka Takala

Traditionally normal ftp from command line was used for that. Nowadays SFTP or SCP have superseded the cleartext ftp. Using SFTP and SCP encrypts the files while transferring them - a good thing if there is files those contain passwords. And also your own password is encrypted.

Profile photo for Patrick O'Callaghan

That depends (of course) on the servers. The baseline way is to download from one and upload to the other, but if you want to transfer between cloud services there’s a good chance you can use Rclone

. It does take some setting up and may not be for the uninitiated, but it’s an incredibly effective tool.

If you actually control the two servers yourself, there are of course other options, but I assume you know that.

Footnotes

Profile photo for Rajiv Ranjan Kumar

To copy a directory recursively from one location to another, use the -r/R option with the cp command. It copies everything, including all its files and subdirectories.

Profile photo for Gil Kirkpatrick

If you’re using the Microsoft Remote Desktop client, you can configure it to map your local drives into the RDP session. Assuming Windows 10…

  1. Open the RDP client, and before connecting, click the Show Options button.
  2. Select the Local Resources tab.
  3. In the Local Devices and Resources panel, click the More… button.
  4. Select the local drive(s) you want to map into the RDP session.
  5. Click Connect to start the RDP session.

The drives you selected will be mapped as network drives in the RDP session. You can use Explorer, PowerShell, or CMD to copy files from the remote PC to the mapped drives. Note that the

If you’re using the Microsoft Remote Desktop client, you can configure it to map your local drives into the RDP session. Assuming Windows 10…

  1. Open the RDP client, and before connecting, click the Show Options button.
  2. Select the Local Resources tab.
  3. In the Local Devices and Resources panel, click the More… button.
  4. Select the local drive(s) you want to map into the RDP session.
  5. Click Connect to start the RDP session.

The drives you selected will be mapped as network drives in the RDP session. You can use Explorer, PowerShell, or CMD to copy files from the remote PC to the mapped drives. Note that the the SMB protocol implementation over RDP is really slow, so expect to wait a while for large file copies.

Profile photo for Miranda Coninx
  1. cp -r <source> <destination> 
Profile photo for Quora User

"The Linux directory" ... is what exactly? There's most probably no such directory unless you've made one yourself.

I'm guessing you mean "a directory in Linux". Well, you'd copy it the exact same way you'd copy any directory in any OS: Through using the tools provided. Those tools may be a command line program, or a GUI "Explorer-like" program, or even something else like a backup program which keeps copying the directory if anything's changed after you've set it to do so.

For a command line version, the default would be to use the Linux built-in program called cp. In windows's CMD window the s

"The Linux directory" ... is what exactly? There's most probably no such directory unless you've made one yourself.

I'm guessing you mean "a directory in Linux". Well, you'd copy it the exact same way you'd copy any directory in any OS: Through using the tools provided. Those tools may be a command line program, or a GUI "Explorer-like" program, or even something else like a backup program which keeps copying the directory if anything's changed after you've set it to do so.

For a command line version, the default would be to use the Linux built-in program called cp. In windows's CMD window the same would be the copy program (or xcopy for more functionality). You'd need to be in a console environment, so if your Linux is showing a desktop then you need to open a console window (same as you'd need to under Windows). Each distro / desktop might have a different name for the console, e.g. in Ubuntu's Unity and Gnome it's called Terminal, in KDE you might have something called Konsole, others may have different names or you might have installed a different console/terminal program yourself.

If you mean you want to use a graphical interface (GUI) then again it depends on the programs installed in your particular version of Linux. E.g. the default explorer in KDE is called Dolphin.

In there you can drag-n-drop between 2 Dophin screens, or you can Ctrl+C to copy and Ctrl+V to paste into the new location (or if you prefer Right-Click and Copy and Right-Click and Paste Clipboard contents).

Or you could have another file manager. E.g. I tend to like the 2 pane versions. The one I prefer using is Krusader. In there I open the source in (say) the left pane and the target in the right (or visa versa). Then ensure the source pane is active (use Tab to swap), the one with the dark surrounds top/bottom is active. Select the files / folders I want to copy (press Insert to add or click with mouse). And press F5 to copy.

There's many other GUI file managers out there, most work in one of these two ways.

Profile photo for Quora User

In Linux if I have a .tar.gz file in 70 users home directory on a server and need to copy to a remote server into the coresponding users home dorectory which command will work?

rsync.

Google for instructions

Profile photo for Prahlad Yeri

The scp tool which is a part of openssh package is well equipped for that. You don’t even have to be logged in on either of the servers, you can simply do something like this!

  1. scp bob@server1:/home/bob/source/* alice@server2:/home/alice/source/ 

scp can also recursively copy all files using the -r argument, and you can specify a non-default port using the -p argument.

openssh comes by default on most linux distros like Ubuntu and Fedora. On windows also, you’ll automatically get it if you’ve installed git bash for windows but you may have to adjust the PATH environment variable, to ensure that scp

The scp tool which is a part of openssh package is well equipped for that. You don’t even have to be logged in on either of the servers, you can simply do something like this!

  1. scp bob@server1:/home/bob/source/* alice@server2:/home/alice/source/ 

scp can also recursively copy all files using the -r argument, and you can specify a non-default port using the -p argument.

openssh comes by default on most linux distros like Ubuntu and Fedora. On windows also, you’ll automatically get it if you’ve installed git bash for windows but you may have to adjust the PATH environment variable, to ensure that scp.exe could be found.

Your response is private
Was this worth your time?
This helps us sort answers on the page.
Absolutely not
Definitely yes
Profile photo for Richard Morris

It is straightforward to move to a host server. Make an account on a host server (paid subscription). Upload your html , css and JavaScript files to your account( typically this is done with FTP). Upload your images , pdf and media files to your account. Test your host account. Publish (register) your domain name with a domain registrar (paid subscription ! ). Tell your friends about your new hosted web site. Ask for constructive criticism.

Profile photo for G Saunders

The easiest way, secure, but not the fastest is to use scp, which works just like cp except its secured with ssh. If you scp to or from another server, you’ll need the credentials on the other server, including the password.

I did this yesterday to copy from an old server being decommissioned to a new one:

cd volume_nyc1_01/
scp -r
root@fraxx.us:/Backup* ./

When I hit enter after the scp, I got prompted for the root password at fraxx and the copy started.

This copied about 4 gigs of directories with names that start with ‘Backup’ from ‘fraxx.us’ to the new server’s directory volumne_nyc_01 in a fe

The easiest way, secure, but not the fastest is to use scp, which works just like cp except its secured with ssh. If you scp to or from another server, you’ll need the credentials on the other server, including the password.

I did this yesterday to copy from an old server being decommissioned to a new one:

cd volume_nyc1_01/
scp -r
root@fraxx.us:/Backup* ./

When I hit enter after the scp, I got prompted for the root password at fraxx and the copy started.

This copied about 4 gigs of directories with names that start with ‘Backup’ from ‘fraxx.us’ to the new server’s directory volumne_nyc_01 in a few minutes. The ‘:’ is part of the syntax for scp and if there’s no ‘/’ the path starts in the user’s home directory. The ‘-r’ says ‘these are directories copy their contents. The ‘./’ means ‘to here’.

To copy a single file from somewhere else, leave out the -r, like

scp root@fraxx.us:bin/Firewall /root/bin

This copied the single file from /root/bin/Firewall to /root/bin on the new server for me to set up as a service in systemd.

To copy the other way it would be like this, and would put ThisHereFile in someuser’s home directory

scp ThisHereFile someuser@there.net:

As of Windows 10, there’s scp at the command line in Windows, prior to that it required an app like the pscp available from the putty download page. For Mac OSX, which is unix, scp comes built in, and it’s built into most Linux distros.

Profile photo for Bheemesh Gudur

cp source_directory -R destination_directory

Note:Use path name whenever both source and destination directories are in different directories.

About · Careers · Privacy · Terms · Contact · Languages · Your Ad Choices · Press ·
© Quora, Inc. 2025