Display the last lines of files. Use for monitoring log files, checking recent entries, and following file growth in...
Display the last lines of files. Use for monitoring log files, checking recent entries, and following file growth in real-time.
Show the end of files, defaulting to the last 10 lines. Includes follow-mode for watching files that grow in real-time.
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
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
```bash
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
```bash
# 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
```
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。