Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I copy a file between different Unix systems?

copy different file SYSTEMS Unix
0
Posted

How do I copy a file between different Unix systems?

0

% scp -p sourcepath targetpath % scp -p sourcehost:sourcepath targethost:targetpath % scp -p sourceuser@sourcehost:sourcepath targetuser@targethost:targetpath The -p option preserves file timestamps, which is nearly always a good idea, since that is your only clue about when the file contents were last modified. If there are more than two arguments, all but the last are source files, and the last must be a target directory. % scp -p sourcepath1 sourcepath2 … targetdir % scp -p sourcehost:sourcepath1 sourcehost:sourcepath2 … targethost:targetdir % scp -p sourceuser@sourcehost:sourcepath1 sourceuser@sourcehost:sourcepath2 … targetuser@targethost:targetdir The source and target files are identified by a filepath, or a hostname and filepath, or a username, hostname, and filepath, as shown in the examples. By naming two hosts other than your current host, you can involve three machines in the transfer. The command will prompt for a password if necessary, but passwords are not needed f

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123