Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
link
Create a hard link to a file
Syntax:
link existing new
Options:
- existing
- Pathname of an existing file.
- new
- Pathname of the new directory entry to be created.
Description:
The link utility creates a hard link, new, that points to another file, existing. This utility is a command-line interface to the link() function:
(void)link( existing, new );
To create a symbolic link, use ln.
Exit status:
- 0
- Successful completion.
- > 0
- An error occurred.
Caveats:
The link command can be very dangerous to your filesystem; you should probably use ln instead.
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)