简体   繁体   中英

How to write to a file over the network

I have two ubuntu linux boxes: I'm in bash on one machine running some battery of tests (storage, memory, etc.). Now, I want to test writing to a file over the network to the other linux box. Any idea of the command to write to a file across the network (behind the same router)? I could easily ssh into the second machine, but I want to send data across the network, writing to a file at the root or some particular directory. Thanks!

You should use scp (Secure copy) or rsync (Remote Sync).

From the command line type

scp file_to_copy user@remote_linx:/tmp/copy_of_file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM