I'm trying to symlink every directory in a folder to another folder. For example, in the structure below, I need the subfolders symlinked to folder2.
- /home/chris/folder1
-- subfolder1
-- subfolder2
- /home/john/folder2
-- subfolder1
-- subfolder2
This is what I have tried so far, but my bash skills are rusty and this does not work.
find /home/chris/folder1 -type d -maxdepth 1 -mindepth 1 -exec ln -s {} /home/john/folder2/{} \;