360 Secure SkillHub
360 安全技能中心

Tail Tool

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

分类:效率
dinghaibin
dinghaibin
热度 23.52
最近更新 2026-05-11 17:47:26

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/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