← 返回命令列表

Linux command

vidir 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Edit filenames in editor

vidir

Edit specific files

vidir [*.txt]

Edit directory contents

vidir [path/to/directory/]

Use specific editor

EDITOR=[vim] vidir

Verbose mode

vidir -v

说明

vidir opens a list of filenames in a text editor, where each line contains a number and a filename. Editing the filenames renames the corresponding files, and deleting lines removes them. All changes are applied when you save and quit the editor. This approach leverages familiar editor features like search-and-replace, macros, and multi-cursor editing for powerful batch renaming operations that would be tedious with individual mv commands.

参数

-v, --verbose
Verbose output.

FAQ

What is the vidir command used for?

vidir opens a list of filenames in a text editor, where each line contains a number and a filename. Editing the filenames renames the corresponding files, and deleting lines removes them. All changes are applied when you save and quit the editor. This approach leverages familiar editor features like search-and-replace, macros, and multi-cursor editing for powerful batch renaming operations that would be tedious with individual mv commands.

How do I run a basic vidir example?

Run `vidir` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -v, --verbose do in vidir?

Verbose output.