For example, I want c be copyed into ab/ not change a/b into a folder with c:
$ mkdir /a /b /ab /b/b
$ ln -s /ab /a/b
$ touch /b/b/c
$ ls -Rl
.:
total 12
drwxrwxr-x 2 a
drwxrwxr-x 2 ab
drwxrwxr-x 3 b
./a:
total 0
lrwxrwxrwx 1 b -> ab
./ab:
total 0
./b:
total 4
drwxrwxr-x 2 b
./b/b:
total 0
-rw-rw-r-- 1 c
I tried:
cp -rf /b/* /a/
cp: cannot overwrite non-directory ‘a/b’ with directory ‘b/b
even with flag -dHlLP dosent work.