Renaming files in command line can be rather cumbersome when using mv
. The conceptual problem with mv
is that you have to retype the complete target file path, which includes the path to the containing directory and the all the unchanged parts of the file name. Of course, auto-completion is a very helpful feature in these situations, but still the whole path has to be provided and further, the unchanged suffix must always be entered manually. For this purpose, I wrote a very basic script which avoids retyping the path and allows for in-place modification of the file name to be changed.
Example
Note that also relative move operations are possible. For instance, by prepending ../
to the file name you can move the target file to the parent directory. Also, using the HOME
(or in German Pos1
) key can be very convenient to achieve this or, in general, to get to the front of the file name.