Linux creates a soft link command: ln -s [dir1] [dir2]
, dir1 is a real folder, and dir2 is a soft link of dir1.
The soft link can be understood as, dir2 is a shortcut of dir1, and after entering dir2, it will automatically enter dir1.
example:
ln -s /home/datasets/JHMDB /home/MOC_detector/data/JHMDB
The real JHMDB dataset is stored in /home/datasets/JHMDB, and /home/MOC_detector/data/JHMDB is a soft link to /home/datasets/JHMDB.
Soft links are not only applicable to folders, but also to files.