Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone,
I have some files in a cd that I need to copy in my home directory. I am not sure how to do that. Would you please help.
When I type dmesg |more I get:
hdc: UJDA720 DVD/CDRW, ATAPI CD/DVD-ROM drive
I cannot find the directory /cdrom
thanks
I went to the directory /mnt and cdrom was right there. I just needed to check the content of /cdrom and all the files were there. I didn't need to run the command mount. I hope that is a correct way of doing it.
Thanks
make a dir in your homefolder and copy (cp or man cp) all files from /mnt/cdrom/ to /home/newdir/
cp : copy files
cp file1 file2 : copies file1 to file2
cp file1 [file2...] dir : copies file to other directory
ATTENTION: This can change/overwrite existing files without warning!
use of wildcards : * ? and []
e.g. ls *.c : lists all files ending with `.c`
cp data* ~/backup : copies all files beginning with `data` to
that directory.
rm *.c : removes all files with extension .c
`*` is a "shell metacharacter", the shell looks up all files that
match *.c, where * can stand for any number of characters of any
sort (alpa-numeric, special characters) and replaces *.c by the found
matching names, before ls is started.
e.g. ls /etc/?? : shows all files with a filename of 2 characters
in the /etc directory
'?' stands for one character of any sort
e.g. in a directory with the files 'oldfile', 'otherfile', 'ourfile'
ls o[lt]* : lists 'oldfile' and 'otherfile'
ls o[^lt]* : lists 'ourfile'
'[]' can be used to list alternative characters for a certain
position in a name and the ^ - sign can be used to specify that a
certain character should not appear on a certain position in a name
I actually figured out how to do it faster but I keep getting the message "could not read file /mnt/cdrom/filename" for all files. does it have to do with read permissions. when I type ls -l it gives me this dr-xr-xr-x 1 root root ....
Should i change permission to be able to copy the files?
thanks for your help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.