[root@localhost testA]# ll
总用量
drwxr-xr-x. root root 9月 : a
-rw-r--r--. root root 8月 diff_A.txt
-rw-r--r--. root root 8月 diff_B.txt
drwxr-xr-x. root root 9月 : linuxprobe
-rw-------. root root 9月 : netcat-0.7..tar.gz
[root@localhost testA]# tree
.
├── a
│ └── b
│ └── c
│ └── d
├── diff_A.txt
├── diff_B.txt
├── linuxprobe
└── netcat-0.7..tar.gz
directories, files
[root@localhost testA]# cp a/ /root/testB/
cp: 略过目录"a/"
[root@localhost testA]# cp -r a/ /root/testB/\
> ^C
[root@localhost testA]# cp -r a/ /root/testB/
[root@localhost testA]# cd /root/testB/
[root@localhost testB]# tree
.
└── a
└── b
└── c
└── d
directories, files