🧀 Learn Linux

进阶 · 整理文件

rename:按表达式批量改名

语法

rename 表达式 文件…

示例

rename "s/\.txt$/.md/" *.txt

使用说明与支持范围

仅供手册查阅

完整文档 ↗

同专题命令