360 Secure SkillHub
360 安全技能中心

Tail Tool

该 Skill 通过命令行查看一个或多个文件的末尾内容,默认显示最后 10 行,可指定行数或字节数,并可用跟踪模式实时监视文件增长,适合查看日志和最近记录。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add tail-tool
Metadata
name
tail-tool
description
Display the last lines of files. Use for monitoring log files, checking recent entries, and following file growth in real-time.

File Tail Viewer

Show the end of files, defaulting to the last 10 lines. Includes follow-mode for watching files that grow in real-time.

Usage

tail-tool [options] [file...]

Options

  • -n N: Show last N lines
  • -f: Follow file growth (watch mode)
  • -c N: Show last N bytes
  • -q: Suppress filename headers

Examples

# Show last 10 lines
tail-tool log.txt

# Show last 50 lines
tail-tool -n 50 access.log

# Follow log in real-time
tail-tool -f /var/log/syslog