October 20, 2014

How copy/cut single file, multiple file, Folder using command line in ubuntu 14.04 From Drive to pendrive

I do not copy data From drive to pen drive. Plz help me.

At first, be sure the pen drive has been mounted. If it is the case, the...

At first, be sure the pen drive has been mounted. If it is the case, the mount point would be something like /media/PENLABEL.

Copy/cut single file.
$cp "path/To/My File" /media/PENLABEL/.
$mv "path/To/My File" /media/PENLABEL/.

Copy/cut a whole Directory (=Folder).
$cp -r "path/To/My Dir" /media/PENLABEL/.
$mv "path/To/My Dir" /media/PENLABEL/.

Copy/cut two files.
$cp "path/To/My File 1" "path/To/My File 2" /media/PENLABEL/.
$mv "path/To/My File 1" "path/To/My File 2" /media/PENLABEL/.

Like  (5 likes)
Click Here!