360 Secure SkillHub
360 安全技能中心

Touch Tool

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

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

安装

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