View Full Version : [ubuntu] Need Help! How to copy files?
kelvin490
July 8th, 2011, 10:46 AM
I have to work in terminal but I don't know the command of copying files from one folder to another.
e.g from /share/ParaDiS.v2.3.5.1 to /home/newfolder
what should I type?
Thank you
dasan
July 8th, 2011, 10:49 AM
only one file or folder as it is
cp is the command to copy
cp /share/ParaDiS.v2.3.5.1/file name /home/newfolder/filename
OR
cp -R /share/ParaDiS.v2.3.5.1 /home/newfolder
will also work i think
man cp for more about cp
kelvin490
July 8th, 2011, 11:06 AM
only one file or folder as it is
cp is the command to copy
cp /share/ParaDiS.v2.3.5.1/file name /home/newfolder/filename
OR
cp -R /share/ParaDiS.v2.3.5.1 /home/newfolder
will also work i think
man cp for more about cp
Very useful, Thanks man
NoFriends
July 8th, 2011, 02:46 PM
cp /home/user/filename /home/user/newlocation/
or
from different machines.
make sure your logged into the machine you want the file on.
scp user@lmachinename:/home/user/filename .
oldos2er
July 8th, 2011, 05:14 PM
If you know what you want to do but are unsure of the exact command, use apropos
apropos copy will spit out every type of "copy" command including the one you want (cp).
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.