I would like to completely link /root/.vidoes/ to the new directory /home/videos/
If a script tries to read/update/save a file to /root/.vidoes/ for example /root/.vidoes/newvideo.mp4 then it should be saved to /home/videos/newvideo.mp4 this also needs to be the case for hidden files or directories trying to be accessed from /root/.vidoes/xyz
I've tried ln -s /home/video/ /root/.video/ but that just makes a directory in /root/.video/video that links to /home/video
lnsupports some flags to reduce this type of error.ln -T /home/videos .videos. You still have to move stuff as in @roaima's answer. It should produce an error if you don't instead of doing the wrong thing. (there is also a-toption, see manual). The-Tand-toptions are in Gnuln,cpandmv.