For example, I want to rename
TheCode.pl in the same directory. Currently I know these:
mv tif/fat/tul/codes/MyCode.pl tif/fat/tul/codes/TheCode.pl
, which requires me to repeat typing the full path (can be annoying if the path is quite long) or
cd mv tif/fat/tul/codes/ mv MyCode.pl TheCode.pl
The drawback being I have to type 2 commands, and there is a side-effect of changing the current directory (which can be undesirable in many cases)
Is there a more efficient way to do this?