The main idea is that I want to bind to the path related to $ HOME, instead of explicitly expanding the $ HOME variable, because I want to make sure that the link works on several machines, for example,
when i do
ln -s ~/data datalnk
I want it to be directed to the /home/user/data directory on the same computer as user $HOME from /home/user to /home/machine/user/data on another computer that has user $HOME /home/machine/user/data .
I cannot create a symbolic link on a second computer using
ln -s /home/machine/user /home/user
because I don’t have permission to do this, and I can’t link relative paths, because the two machines have different directory hierarchies.
anyideas about possible ways to fix or work around this?
EDIT:
what I'm really trying to accompany is to make the same connection with two engines, where the targets have the same directories in terms of their relative path only to $ / HOME, and not to their absolute path, not to their relative path to the link.
nye17
source share