I want copy and paste a file. The name of the file is mkoctfile.m
.
The path of this file is:
/usr/share/octave/3.2.4/m/miscellaneous/mkoctfile.m
I want to paste it to the following path
/usr/bin/mkoctfile-3.2.4
I have made the directory by using following commands:
sudo su
mkdir -p /usr/bin/mkoctfile-3.2.4
but I don't know how to copy and paste mkoctfile.m
in this path.
Please tell me what command I have to use.
Best Answer
Use the
cp
command to copy a file, the syntax goescp sourcefile destinationfile
. Use themv
command to move the file, basically cut and paste it somewhere else.The exact syntax you would use for your example is:
For more information on the
cp
ormv
commands you can run:or
To view the manual pages