Create hard and symbolic links between files. Use for file referencing, shortcuts, and directory organization.
Create hard and symbolic links between files. Use for file referencing, shortcuts, and directory organization.
Create links between files. Supports hard links (same inode, same data) and symbolic links (reference to target path). Essential for file organization and shared resources.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
name: ln-tool
description: Create hard and symbolic links between files. Use for file referencing, shortcuts, and directory organization.
---
# Ln - Link Creation Utility
Create links between files. Supports hard links (same inode, same data) and symbolic links (reference to target path). Essential for file organization and shared resources.
## Usage
```bash
ln-tool [options] <target> <link_name>
```
## Link Types
- Hard links: Direct reference to file data (same inode)
- Symbolic links: Path reference (can cross filesystems)
## Options
- `-s`: Create symbolic link (default is hard link)
- `-f`: Force creation (remove existing destination)
- `-n`: Treat destination as normal file
## Examples
```bash
# Hard link
ln-tool original.txt link.txt
# Symbolic link
ln-tool -s /usr/bin/python3 ./python
# Force replace existing link
ln-tool -sf /usr/bin/python3 ./python
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。