Advertisement
Guest User

Untitled

a guest
Mar 6th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/bash
  2. mkdir source_dir
  3. pushd source_dir
  4. dd if=/dev/zero of=source bs=600K count=1
  5. for i in `seq 1 11500`;
  6. do
  7.         cp -v source file_$i;
  8. done
  9. rm source
  10. for i in `seq 1 10`;
  11. do
  12.         dd if=/dev/zero of=file_large_$i bs=200M count=1
  13. done
  14. popd
  15.  
  16. echo "Created 11500 files with size 600K and 10 files with size 200M, try the following command:"
  17. echo "rsync -avvvz --delete source_dir target_dir"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement