Monday, September 19, 2011

Linking Files

You can use the link command to create a pointer to an existing file. When you do this, you aren’t
actually creating a new file as such; you are creating a virtual copy of the original by pointing a new
filename to an existing file.

$ ln –s <current_filename> <link_name>

The following command creates a symbolic link called test.sql, which refers to the original file
called monitor.sql: