LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-18-2006, 07:07 AM   #1
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Help on copy command


Dear All,

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.

Thanks in Advance,
Nishant Desai
 
Old 09-18-2006, 07:18 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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!

Last edited by pwc101; 09-18-2006 at 07:19 AM.
 
Old 09-19-2006, 11:48 PM   #3
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by pwc101
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.

Thanks,
Nishant
 
Old 09-20-2006, 02:50 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with command copy in xterm harys Linux - Software 1 04-07-2006 10:58 AM
move/copy command Cyberian Linux - Newbie 1 11-23-2004 06:50 AM
copy and paste in with command exper Linux - Software 1 12-26-2003 09:28 AM
right click has no copy command murshed Linux - General 4 12-25-2002 10:31 PM
Copy Command rlkiddjr Linux - General 2 05-07-2002 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration