UNIX File Copy
Moving Files
mv myfile1.tst myfile2.tst
Copying Files
cp
To time how long it takes to make a copy of a file...
time cp myfile1.tst myfile2.tst
rsync
To recursively copy a directory and its contents including progress reporting and timing...
time rsync -a --progress /mymount1/mydir /mymount2
time rsync -rlptgoD --progress /mymount1/mydir /mymount2
The two commands above are functionally identical. i.e. -a is the same as -rlptgoDrsync mydir1 mydir2
rsync mydir1/* mydir2
rsync -r mydir1/* mydir2
rsync -ri mydir1/* mydir2
rsync -ri mydir1/* mydir2
rsync -rv mydir1/* mydir2
sent 547 bytes received 110 bytes 1,314.00 bytes/sectotal size is 289 speedup is 0.44
rsync -r --stats mydir1/* mydir2
sent 547 bytes received 81 bytes 1,256.00 bytes/sectotal size is 289 speedup is 0.46
rsync -r --progress mydir1/* mydir2
time rsync -ahiv --stats mydir1/* mydir2
rsync -ahv --progress --dry-run --update --backup --suffix=.bak /mymount1/mydir /mymount2
rsync -ahv --progress --update --backup --suffix=.bak /mymount1/mydir /mymount2
Standard out redirection
TODO:
pv source >destination
cat source >destination