Is it possible to upload a specific number of bytes (binary data) to http/ftp server using linux command?

  • what is the purpose from uploading just bytes no matter of file size to ftp server ? – Wissam Roujoulah Nov 30 '16 at 14:24
  • I need just to get some statistics – imen bhiri Nov 30 '16 at 14:26
  • you want to make a traffic load on remote server for statistics ? if that there is many tools to make the test – Wissam Roujoulah Nov 30 '16 at 14:27

Sure; here's one way with FTP:

put "|dd if=/dev/zero bs=1k count=100" /dev/null

Adjust the block size and counts to the amount you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.