link
Create a hard link to an existing file without copying data. Use dry-run to preview and overwrite protection to prevent accidental replacement.
Instructions
Create hard links to existing files with dry-run and overwrite protection. Destructive: creates new directory entries pointing to the same inode. Hard links cannot span filesystems. Use --dry_run to preview. Overwrite protection enabled by default. Returns JSON with link path and status. Use to create additional names for the same file content without copying data. Not for symbolic links — use 'ln --symbolic'. Not for copying content — use 'cp'. See also 'ln', 'cp'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_overwrite | No | Allow replacing an existing destination. | |
| destination | Yes | Hard link path to create. | |
| dry_run | No | Report operation without changing files. | |
| parents | No | Create missing parent directories. | |
| source | Yes | Existing source file. |