Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am creating RAMdisk and for that after mounting the folder for the RAMdisk, i want to copy the data into that folder and for that i must have to copy the data inside my Prep folder in my root folder, now if i ll write the command "cp -a /root/Prep /mnt/ramdisk and it will copy whole the Prep folder into the /ramdisk folder, which afterwards becomes /ramdisk/Prep, which i dont want i want the data inside the /Prep folder to copy into the /ramdisk folder, which do not make /ramdisk/Prep folder, instead it makes the /ramdisk/... folder (... is the folders which are inside t he /Prep folder), and when i tried to copy these folders individually inside the /mnt/ramdisk folder, Linux didnt allow me to do so after copying 2-3 folders and give me an error, so is it any other way which leads me to copy whole the content of the folder into another folder, still does not carry parent folder, (/Prep folder) in my case.
Have you tried appending an asterisk to the end of your cp command?
Code:
cp /root/Prep/* /mnt/ramdisk
that'll copy the content of /root/Prep to /mnt/ramdisk
Unless I've misunderstood your question which, incidentally, is very hard to understand. I appreciate English may not be your first language, in which case, please don't take offence. However, it would be easier to read if your question was not one (very) long sentence, but a series of shorter sentences. Also, separating it into a number of paragraphs would help.
Have you tried appending an asterisk to the end of your cp command?
Code:
cp /root/Prep/* /mnt/ramdisk
that'll copy the content of /root/Prep to /mnt/ramdisk
Unless I've misunderstood your question which, incidentally, is very hard to understand. I appreciate English may not be your first language, in which case, please don't take offence. However, it would be easier to read if your question was not one (very) long sentence, but a series of shorter sentences. Also, separating it into a number of paragraphs would help.
Hope I got the right idea though!
Dear pwc,
Thanks for the reply first of all, and yes though my question format was so irretating you ve got the right idea, so you ve given me right answer, anyways from the next time i will try to post a question with good format, not with such an irretating one.
I wouldn't go so far as to say it was irritating! It was just a little difficult to understand. Anyway, it seems you got the message across, which is the most important part Glad to have helped.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.