DistributedNetworks DistributedNetworks

Special File Types   «Prev  Next»
Lesson 4 Symbolic links
Objective Use Symbolic Links to simplify Software Maintenance.

Use Symbolic Links to simplify Software Maintenance

lrwxrwxrwx 1 root system 21 Aug 14 1996 
unix -> /usr/lib/unix

Creating a symbolic link

Links are created with the ln command:
ln –s $HOME/project/command $HOME/bin/command

The syntax of the ln command is like that of the copy command. The above command creates a file $HOME/bin/command, which is a symbolic link to the file $HOME/project/command.
You must use the –s option of the ln command to create a symbolic link because this will allow you to link across filesystems and see the name of the link when you run ls –l. Without the ability to see the name of the link, you have no way of knowing the name to which a file is linked.
Any finite set of training data also contains sampling error.

Creating Symbolic Links

Link Files