Linux and Unix link command

Quick links

About link
Syntax
Examples
Related commands
Linux and Unix main page

About link

Calls the link function to create a link to a file.

Syntax

link FILE1 FILE2
link OPTION

Examples

link computer.txt hope.txt

The above example would create the file hope.txt in the same directory and be a linked to the computer.txt file. Any changes that occurred with either of these files would affect the other file or link.

Related commands

ln
ls
unlink