Example: Creating a symbolic link

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

This example creates a symbolic link named big_dipper that references an object named ursa_major.jpg.

Unix command

ln -s /datamount/images/constellations/ursa_major.jpg
/datamount/constellations/common_names/big_dipper

Python code

import os
os.symlink("/datamount/images/constellations/ursa_major.jpg",
"/datamount/constellations/common_names/big_dipper"