There could be situations when you should copy files or block device to another system via network. There are a few methods to do it.
1. Copy files with ssh:
scp -r /home/user/testdir /etc/init.d/my_init_file email@example.com:
-r means recursively copy directories
First part of command is what exactly we copy (files and dirs), second is where we copy. Two points after ip address means that we want to copy to home dir of user.
2. Copy block device with netcat:
on server where copy:
nc -l -p 5555 | dd of=/dev/sdc
Firstly, execute this command on remote machine that netcat open socket and listen. -l opt...