Source/rule:
/Src1/.../srcn/indicates that only the content under scrn/is copied.
/Src1/.../srcn indicates copying together with the srcn directory and the following content.
Rsync, CP, and SCP all agree with the source/Rules
# Linuxtest will also be copied to/homelinuxtest.
Zhonghua @ pts/ttys001 $ CP-r/home/gaoyibo/linuxtest/home/linuxtest
Zhonghua.daodao.com [/home/gaoyibo/linuxtest] 11/14/11 17:05:31
# After copying, you can find the file in the following directory. The source/rule is proved.
Zhonghua @ pts/ttys001 $ CD/home/linuxtest/abc.txt
Note: music videos do not comply with the above rules.
# The directory will not be copied, but the file will be copied.
MV/home/linuxtest // home/gaoyibo/linuxtest/
# The directory will not be copied, but the file will be copied.
MV/home/gaoyibo/linuxtest // home/linuxtest
# The directory will not be copied, but the file will be copied.
MV/home/linuxtest/home/gaoyibo/linuxtest