D
Deleted member 27741
Guest
Ok. So I need some help with this symlink thing. I have files in location A that I will be editing. I want the OS to think the files are in location B.
More specifically, I want to be able to edit and save a file in this location:
/tmp/mnt/MYUSB/scripts/MYFILE
And have that editing translate into the file in this location:
/jffs/scripts/MYFILE
I am not sure if symlinking is the answer, nor do I know if I would need or not need the actual file to exist in the second location. Maybe hard linking is the answer here?
EDIT
*************************************************
Looks like I figured it out. First off, I had to make sure the /jffs/scripts/MYFILE file did not exist. then
ln -s /tmp/mnt/MYUSB/scripts/MYFILE /jffs/scripts/MYFILE
More specifically, I want to be able to edit and save a file in this location:
/tmp/mnt/MYUSB/scripts/MYFILE
And have that editing translate into the file in this location:
/jffs/scripts/MYFILE
I am not sure if symlinking is the answer, nor do I know if I would need or not need the actual file to exist in the second location. Maybe hard linking is the answer here?
EDIT
*************************************************
Looks like I figured it out. First off, I had to make sure the /jffs/scripts/MYFILE file did not exist. then
ln -s /tmp/mnt/MYUSB/scripts/MYFILE /jffs/scripts/MYFILE
Last edited by a moderator: