Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $ mkdir src
  2. $ touch src/file1
  3. $ zip -r 1.zip src
  4. adding: src/ (stored 0%)
  5. adding: src/file1 (stored 0%)
  6.  
  7. $ unzip 1.zip -d temp
  8. Archive: 1.zip
  9. creating: temp/src/
  10. extracting: temp/src/file1
  11.  
  12. $ rsync -n -av temp/src/ src/
  13. sending incremental file list
  14.  
  15. sent 64 bytes received 12 bytes 152.00 bytes/sec
  16. total size is 0 speedup is 0.00 (DRY RUN)
  17.  
  18. $ touch src/file1
  19. $ rsync -n -av temp/src/ src/
  20. sending incremental file list
  21. file1
  22.  
  23. sent 67 bytes received 15 bytes 164.00 bytes/sec
  24. total size is 0 speedup is 0.00 (DRY RUN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement