360 Secure SkillHub
360 安全技能中心

Touch Tool

该 Skill 提供 touch-tool 命令,用于创建空文件或更新已有文件的访问与修改时间戳,支持 -a、-m、-t、-c 选项,通过 bash 或 python3 运行 scripts/touch.py 实现。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add touch-tool
Metadata
name
touch-tool
description
Create empty files or update file timestamps. Use for file creation, timestamp management, and build system operations.

Touch - File Timestamp Manager

Create empty files or update the access and modification timestamps of existing files. If the file doesn't exist, it is created empty.

Usage

touch-tool [options] <file...>

Options

  • -a: Change access time only
  • -m: Change modification time only
  • -t STAMP: Use specified time instead of current time
  • -c: Don't create file if it doesn't exist

Examples

touch-tool newfile.txt
touch-tool -a oldfile.log
touch-tool -t 202605011200 file.txt