So I basically have a directory A that always exists. I'd like to replace this directory with a symbolik link (this will be done in my deployment script).
I've tried ln -sf app/cache A
but it does not work, it creates it inside A instead of overwriting it.
$ tree
.
├── A
│ └── cache -> app/cache
└── app
└── cache
3 directories, 1 file
Is it possible with only ln
or do I have to remove A beforehand?