Linux command
qcp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Edit filenames
qcp
Copy specific files
qcp [*.txt]
Use dual-column format
qcp --format=dual [*.jpg]
Preview what would happen
qcp --dummy [*.log]
Recursive listing
qcp -R [src/]
说明
qcp (quick copy) opens a temporary buffer in $EDITOR listing the files you supplied (or the contents of the current directory if none are given) and lets you type the destination names in place. When you save and exit, qcp copies each source to the edited destination. It is the copy-oriented sibling of qmv, the rename utility from the renameutils package by Oskar Liljeblad. Because all edits happen in a text editor, common editor features — search and replace, multi-cursor editing, macros — become powerful batch-copy primitives.
参数
- -f, --format=_FORMAT_
- Edit format: destination (default, edit only the new name), dual (two columns with source on the left), or single (single column, shared source/destination).
- -o, --options=_OPTIONS_
- Comma-separated format options (e.g. source-comments, autodetect).
- -i, --interactive
- Drop into a command-mode prompt after editing instead of applying immediately.
- -e, --editor=_PROGRAM_
- Override the editor (defaults to $VISUAL, then $EDITOR, then vi).
- --ls=_PROGRAM_
- Use an alternative ls implementation to generate the file list.
- --dummy
- Print the operations that would be performed but do not copy anything.
- -v, --verbose
- Show each copy as it is performed.
- --help, --version
- Display help or version information.
FAQ
What is the qcp command used for?
qcp (quick copy) opens a temporary buffer in $EDITOR listing the files you supplied (or the contents of the current directory if none are given) and lets you type the destination names in place. When you save and exit, qcp copies each source to the edited destination. It is the copy-oriented sibling of qmv, the rename utility from the renameutils package by Oskar Liljeblad. Because all edits happen in a text editor, common editor features — search and replace, multi-cursor editing, macros — become powerful batch-copy primitives.
How do I run a basic qcp example?
Run `qcp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --format=_FORMAT_ do in qcp?
Edit format: destination (default, edit only the new name), dual (two columns with source on the left), or single (single column, shared source/destination).