scp: how to find out that copying was finished
问题 I'm using scp command to copy file from one Linux host to another. I run scp commend on host1 and copy file from host1 to host2. File is quite big and it takes for some time to copy it. On host2 file appears immediately as soon as copying was started. I can do everything with this file even if copying is still in progress. Is there any reliable way to find out if copying was finished or not on host2? 回答1: Off the top of my head, you could do something like: touch tinyfile scp bigfile tinyfile