Linux provides different ways to work with files. Generally a file is accessed directly. But there are some situations to create links those are used as original file.
What is ln Linux?
Ln is linux tool to manage symbolic links. ln becomes very useful when there is file restrictions or file name related issues.
Man page of ln can be accessed from a linux box like below.
$ man ln
If you prefer web page about ln man look page below.
As we see ln syntax is like below.
ln OPTION TARGET LINK_NAME
Symbolic Link Linux
Linux provides a mechanism named symbolic link. It can be created a soft link like below. In other ways we call it creating symbolic link linux.
$ ln -s test.c mytest.c
We can see that symbolic link files are shown in different color if bash coloring is enabled.
Remove Symbolic Link
Removing symbolic links is easy as removing file. Rm command is used to remove symbolic link but original file stays without effecting this.
$ rm mytest.c