0

Is there any solution if I need to mount the directory e.g. /Test pointing to /Opt/Test

Thanks Sumit

user170039
  • 21
  • 2

1 Answers1

0

Yes, for sure there is!

Easiest option: remove "Test" and replace it by a symbolic link with the same name that links to "/Opt/Test". For practical purposes, such symbolic link behaves and acts as if it were a true directory.

More thorough option: if you have special requirements where a link does not cut it, then you can mount --bind the directory "Test" to "/Opt/Test".

vanadium
  • 88,010