In linux or freebsd, Is there a way to copy all files under a folder and its subfolders as symbolic link ? I need to copy thousands of files into different locations as symbolic links and only have 2-3 configuration files as the actual file. The reason I’m doing this is, I have dozen of websites with with exactly the same engine code, but different configuration and look. I want to copy the engine as symbolic link so every change I make to original files will be applied to other websites as well.
I can’t make symbolic link to the engine folder itself, because the configuration file is under that folder, and I can’t copy files one by one ! cause obviously it’s not practical.
Any suggestion ?
In linux or freebsd, Is there a way to copy all files under a
Share
The command you are looking for is
cp -rs /path/to/source dest.Note that you need to provide full path to the source directory so that it can make absolute symlinks.