User Tools

Site Tools


linux:shellcommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
linux:shellcommands [2017/01/12 02:12] – external edit 127.0.0.1linux:shellcommands [2017/04/18 09:38] – [rsync] admin
Line 29: Line 29:
   * convert unixtime<code bash>   * convert unixtime<code bash>
   date -d @1098181096   date -d @1098181096
-</code>  +</code> 
 +  * sync time:<code bash> 
 +ntpdate  pool.ntp.org 
 +</code>
 ===== file and directory commands ===== ===== file and directory commands =====
 ==== dirname ==== ==== dirname ====
Line 548: Line 551:
 ==== rsync ==== ==== rsync ====
 ( rsync  is  a  program that behaves in much the same way that rcp does, but has many more options and uses the rsync       remote-update protocol to greatly speed up file transfers when the destination file is being updated. ( rsync  is  a  program that behaves in much the same way that rcp does, but has many more options and uses the rsync       remote-update protocol to greatly speed up file transfers when the destination file is being updated.
-The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies  this package.)<code bash>+The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies  this package.) 
 +  * rsync in local<code bash>
 rsync -avz   --exclude=".svn" "/home/anhvc/web/9thien.com/" /web/9thien.com/ rsync -avz   --exclude=".svn" "/home/anhvc/web/9thien.com/" /web/9thien.com/
 +</code>
 +  * rsync to remote host<code bash>
 +rsync -avz --exclude=".svn"  -e "ssh -p2222" "/home/anhvc/web" 123.30.245.164:~
 </code> </code>
 ==== rsync on windows ==== ==== rsync on windows ====
linux/shellcommands.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1