Hi all,
PHP Code:
[root@AUSDEV Desktop]# pwd
/root/Desktop
[root@AUSDEV Desktop]# ls -l
total 8
drwxr-xr-x 3 root root 4096 Jul 16 23:32 dir1
drwxr-xr-x 3 root root 4096 Jul 16 23:37 DIR1
PHP Code:
[root@AUSDEV Desktop]# tree dir1
dir1
|-- dir2
| `-- dir3
| `-- dir4
| `-- dir5
`-- f1
4 directories, 1 file
PHP Code:
[root@AUSDEV Desktop]# tree DIR1
DIR1
`-- DIR2
1 directory, 0 files
# cp -rf /dir* .
PHP Code:
[root@AUSDEV DIR2]# ls -l
total 4
drwxr-xr-x 3 root root 4096 Jul 17 01:22 dir1
[root@AUSDEV DIR2]# cd dir1/
[root@AUSDEV dir1]# ls -l
total 4
drwxr-xr-x 4 root root 4096 Jul 17 01:22 dir2
[root@AUSDEV dir1]# cd dir2/
[root@AUSDEV dir2]# ls -l
total 8
drwxr-xr-x 3 root root 4096 Jul 17 01:22 dir1
drwxr-xr-x 3 root root 4096 Jul 17 01:22 dir3
My question is
Why directory dir1 is created under directory dir2 ?
Thanks in advance.