Thursday, May 2, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9117  / 1 Year ago, sat, december 17, 2022, 11:46:26

I am trying to copy the contents of a DVD to a folder (named ANIL) in Hard Disk
by using terminal.



Would somebody be able to provide me an example of the command line syntax required to achieve this?



Regards!


More From » command-line

 Answers
0

The syntax of cp (copy command in Terminal) from man cp is as following:



NAME
cp - copy files and directories

SYNOPSIS
cp [OPTION]... [-T] SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... -t DIRECTORY SOURCE...

DESCRIPTION
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.


Insert your DVD and open your file manager and open the DVD by clicking on its name under devices:



enter image description here



Then press Ctrl+L to getting its mountpoint(source path) and copy it.



enter image description here



Now open Terminal(use Ctrl+Alt+T) and type following:



cp -R /media/USERNAME/DVDNAME/* ~/ANIL/


Just replace USERNAME with your real username and DVDNAME(in my case it's 211+6211) with yours. And also in above command your ANIL directory located in your Home directoy.



See also here


[#22862] Sunday, December 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
huovie

Total Points: 234
Total Questions: 99
Total Answers: 105

Location: Central African Republic
Member since Sun, Feb 26, 2023
1 Year ago
;