We can create a Symbolic link in Linux Terminal using the ln (link) command with the -s option.
Let's take a look at a few examples.
Syntax:
ln -s <file-or-dir-path> <symbolic-link-name>
Example 1: Symbolic Link of a File
# ln -s /home/data/records_2023.csv data

Example 2: Symbolic Link of a Directory
# ln -s /home/app/data/2023/records records
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!