360 Secure SkillHub
360 安全技能中心

Ln Tool

该 Skill 提供 ln-tool 命令,接收目标路径和链接名,可创建硬链接或符号链接,并支持 -s、-f、-n 选项;适用于文件引用、快捷方式和目录组织。材料未说明批量处理、链接校验或跨平台细节。

dinghaibin
dinghaibin
热度 30.56
最近更新 2026-05-11 17:46:41
分类:效率依赖:读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ln-tool
Metadata
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

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

# 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