Linux Copy all the files including subdirectories from DVD / Floppy / CD / Other directory

https‮/:‬/www.lautturi.com
Linux Copy all the files including subdirectories from DVD / Floppy / CD / Other directory

To copy all the files including subdirectories from a DVD, floppy, CD, or other directory on a Linux system, you can use the cp command with the -R option.

The -R option tells cp to copy directories recursively, meaning that it will copy the contents of any subdirectories as well as the files in the top-level directory.

For example, to copy all the files from the /media/cdrom directory (assuming that the CD is mounted there) to the current working directory, you would run:

cp -R /media/cdrom/* .

This will copy all the files and subdirectories in the /media/cdrom directory to the current working directory.

You can also specify a different destination directory by replacing the . with the desired directory path. For example, to copy the files to the /home/user/documents directory, you would use the following command:

cp -R /media/cdrom/* /home/user/documents
Created Time:2017-10-29 22:08:52  Author:lautturi