18
4
We have two paths. First one is directory, second either a directory or a file.
/a/b/c
and /a/d/e.txt
Relative path from first path to second will be:
../../d/e.txt
How to calculate that in Linux terminal? For those who ask “What is usage case?” one could use this—for example—to create lots of relative symlinks.
1This should not have been migrated. – None – 2010-05-13T04:52:49.807
1It should have been closed as a duplicate. – Paused until further notice. – 2010-05-13T10:19:56.150