360 Secure SkillHub
360 安全技能中心

Readlink Tool

该 Skill 提供一个用于解析符号链接的脚本,可显示链接指向的目标路径,并支持规范化路径、要求路径存在和抑制换行等选项。依赖 readlink 与 Python/Bash 运行时,适用于理解符号链接链和定位实际文件位置。

dinghaibin
dinghaibin
热度 30.48
最近更新 2026-05-11 17:47:01
分类:效率依赖:代码执行 / 读写文件应用场景:工作流 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add readlink-tool
Metadata
name
readlink-tool
description
Display the target of a symbolic link. Use for resolving symlinks to find the actual file or directory they point to.

Readlink - Symbolic Link Resolver

Show the target path that a symbolic link points to. Essential for understanding symlink chains and finding actual file locations.

Usage

readlink-tool [options] <link>

Options

  • -f: Canonicalize by following every symlink in the path
  • -e: Canonicalize but require all components to exist
  • -n: Suppress trailing newline

Examples

readlink-tool /usr/bin/python
readlink-tool -f symlink_to_file
readlink-tool -e symlink.txt