- 论坛徽章:
- 1
|
sorry,我的错,是avz- [test@test ~]$ mkdir ./{folder1,folder2}
- [test@test ~]$ ls -l fo*
- folder1:
- total 0
- folder2:
- total 0
- [test@test ~]$ cp -R /etc/skel/.[^.]* ./folder1/
- [test@test ~]$ ls -al fo*
- folder1:
- total 28
- drwxr-xr-x 3 jinzm user 4096 Mar 17 20:18 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- -rw-r--r-- 1 jinzm user 33 Mar 17 20:18 .bash_logout
- -rw-r--r-- 1 jinzm user 176 Mar 17 20:18 .bash_profile
- -rw-r--r-- 1 jinzm user 124 Mar 17 20:18 .bashrc
- -rw-r--r-- 1 jinzm user 515 Mar 17 20:18 .emacs
- drwxr-xr-x 4 jinzm user 4096 Mar 17 20:18 .mozilla
- folder2:
- total 8
- drwxr-xr-x 2 jinzm user 4096 Mar 17 20:16 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- [test@test ~]$ cp -R /etc/profile ./folder1/
- [test@test ~]$ ls -al fo*
- folder1:
- total 32
- drwxr-xr-x 3 jinzm user 4096 Mar 17 20:18 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- -rw-r--r-- 1 jinzm user 33 Mar 17 20:18 .bash_logout
- -rw-r--r-- 1 jinzm user 176 Mar 17 20:18 .bash_profile
- -rw-r--r-- 1 jinzm user 124 Mar 17 20:18 .bashrc
- -rw-r--r-- 1 jinzm user 515 Mar 17 20:18 .emacs
- drwxr-xr-x 4 jinzm user 4096 Mar 17 20:18 .mozilla
- -rw-r--r-- 1 jinzm user 1040 Mar 17 20:18 profile
- folder2:
- total 8
- drwxr-xr-x 2 jinzm user 4096 Mar 17 20:16 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- [test@test ~]$ rsync -avw folder1/ ./folder2
- rsync: -avw: unknown option
- rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8]
- [test@test ~]$ rsync -avz folder1/ ./folder2
- building file list ... done
- ./
- .bash_logout
- .bash_profile
- .bashrc
- .emacs
- profile
- .mozilla/
- .mozilla/extensions/
- .mozilla/plugins/
- sent 1575 bytes received 154 bytes 3458.00 bytes/sec
- total size is 1888 speedup is 1.09
- [test@test ~]$ ls -al fo*
- folder1:
- total 32
- drwxr-xr-x 3 jinzm user 4096 Mar 17 20:18 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- -rw-r--r-- 1 jinzm user 33 Mar 17 20:18 .bash_logout
- -rw-r--r-- 1 jinzm user 176 Mar 17 20:18 .bash_profile
- -rw-r--r-- 1 jinzm user 124 Mar 17 20:18 .bashrc
- -rw-r--r-- 1 jinzm user 515 Mar 17 20:18 .emacs
- drwxr-xr-x 4 jinzm user 4096 Mar 17 20:18 .mozilla
- -rw-r--r-- 1 jinzm user 1040 Mar 17 20:18 profile
- folder2:
- total 32
- drwxr-xr-x 3 jinzm user 4096 Mar 17 20:18 .
- drwx------ 8 jinzm user 4096 Mar 17 20:16 ..
- -rw-r--r-- 1 jinzm user 33 Mar 17 20:18 .bash_logout
- -rw-r--r-- 1 jinzm user 176 Mar 17 20:18 .bash_profile
- -rw-r--r-- 1 jinzm user 124 Mar 17 20:18 .bashrc
- -rw-r--r-- 1 jinzm user 515 Mar 17 20:18 .emacs
- drwxr-xr-x 4 jinzm user 4096 Mar 17 20:18 .mozilla
- -rw-r--r-- 1 jinzm user 1040 Mar 17 20:18 profile
复制代码 |
|