How to control or throttle SCP file transfer speed

I wanted to control how fast SCP copy data between two Linux servers. On a Linux system this can easily be achieved using the “SCP -l” switch. In my case I had to make sure to not exceed 0.5 Mbit/s Since the “-l” parameter uses Kbit/s the correct value in my case is 500 scp …

Continue reading

How to automatically provide an answer to Unix commands

How do you automatically provide an answer to a Unix command for example cp: overwrite `destination/./b.txt’? Many Unix/Linux commands that operate on files may stop and ask for confirmation for each file before completing an action. Of course for many Unix/Linux commands there are parameters that allows you to specify the desired behavior, but there …

Continue reading