How to copy and paste a file?
Use the cp
command to copy a file, the syntax goes cp sourcefile destinationfile
.
Use the mv
command to move the file, basically cut and paste it somewhere else.
The exact syntax you would use for your example is:
sudo cp /usr/bin/octave/3.2.4/m/miscellaneous/mkoctfile.m /usr/bin/mkoctfile-3.2.4
For more information on the cp
or mv
commands you can run:
man cp
or
man mv
To view the manual pages