360 Secure SkillHub
360 安全技能中心

Tar

核心功能涵盖创建多格式(.tar/.tar.gz等)归档、提取内容、查看归档详情、添加文件至未压缩归档、获取元数据、比对归档、校验完整性、搜索指定文件。适用于批量归档文件、检查归档损坏、比对不同版本归档等场景,通过bash脚本命令传参执行,输出对应操作结果。

bytesagain1
bytesagain1
热度 63.93
最近更新 2026-05-11 17:32:16
分类:自动化依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add tar
Metadata
name
tar
version
3.0.1
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
license
MIT-0
tags
["tar","tool","utility"]
description
Create, extract, list, and compress tar archives with format support. Use when scanning contents, monitoring sizes, reporting results, alerting corruption.

tar

Archive management tool.

Commands

create

Create tar archive (.tar/.tar.gz/.tar.bz2/.tar.xz)

scripts/script.sh create <archive> <files...>

extract

Extract archive contents

scripts/script.sh extract <archive> [dir]

list

List archive contents with details

scripts/script.sh list <archive>

add

Add files to uncompressed .tar archive

scripts/script.sh add <archive.tar> <files...>

info

Show archive metadata (size, entries, format)

scripts/script.sh info <archive>

diff

Compare contents of two archives

scripts/script.sh diff <a1> <a2>

verify

Check archive integrity

scripts/script.sh verify <archive>

find

Search for files matching pattern

scripts/script.sh find <archive> <pattern>

Requirements

  • bash 4.0+

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com