link
Create hard links to existing files with dry-run and overwrite protection. Add directory entries to the same inode without copying data.
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 |
|---|---|---|---|
| source | Yes | Existing source file. | |
| dry_run | No | Report operation without changing files. | |
| parents | No | Create missing parent directories. | |
| destination | Yes | Hard link path to create. | |
| allow_overwrite | No | Allow replacing an existing destination. |