I note a strange behavior of mv/cp on Linux. The directories A and A/. should be equivalent but as arguments for the source they seem to behave differently. Is that a bug? Of course you could ask why should I use A/. instead of A as source but sometimes one wants "." as source and the same strange things happen... Maybe someone knows an answer.
Let's start with
$ mkdir A A/A1 B
and now
variant 1)
$ cp -r A B
$ ls B
A
All right.
variant 2)
$ cp -r A/. B
$ ls B
A1
Why "A1" and not "A"?
variant 3)
$ mv A B
$ ls B
A
All right.
variant 4)
$ mv -i A/. B
mv: overwrite `B/.'? y
mv: cannot move `A/.' to `B/.': Device or resource busy
strange...
mkdir -paliased. – Daniel Beck♦ Dec 6 '11 at 12:15-p– Sachin Divekar Dec 6 '11 at 12:26mkdir -p A/A1 Bit will create A and A/A1 automatically. – Sachin Divekar Dec 6 '11 at 12:26