HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

qmv — Move files and directories using the default text editor to define the filenames. More information:

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfilesanddirectoriesclimoveqmvusing

Problem

How to use the qmv command: Move files and directories using the default text editor to define the filenames. More information: <https://manned.org/qmv>.

Solution

qmv — Move files and directories using the default text editor to define the filenames. More information: <https://manned.org/qmv>.

Move a single file (open an editor with the source filename on the left and the target filename on the right):
qmv {{source_file}}


Move multiple JPEG files:
qmv {{*.jpg}}


Move multiple directories:
qmv {{[-d|--directory]}} {{path/to/directory1 path/to/directory2 path/to/directory3 ...}}


Move all files and directories inside a directory:
qmv {{[-R|--recursive]}} {{path/to/directory}}


Move files, but swap the positions of the source and the target filenames in the editor:
qmv {{[-o|--option]}} swap {{*.jpg}}


Rename all files and folders in the current directory, but show only target filenames in the editor (you can think of it as a kind of simple mode):
qmv {{[-f|--format]}} do .

Code Snippets

Move a single file (open an editor with the source filename on the left and the target filename on the right)

qmv {{source_file}}

Move multiple JPEG files

qmv {{*.jpg}}

Move multiple directories

qmv {{[-d|--directory]}} {{path/to/directory1 path/to/directory2 path/to/directory3 ...}}

Move all files and directories inside a directory

qmv {{[-R|--recursive]}} {{path/to/directory}}

Move files, but swap the positions of the source and the target filenames in the editor

qmv {{[-o|--option]}} swap {{*.jpg}}

Context

tldr-pages: common/qmv

Revisions (0)

No revisions yet.