command to copy a directory
Hi Guys,
I was trying to copy a directory from one place to the other one (local HD) but the cp command doesn't allow me to copy the entire directory. I was able to copy files from there but no directories. Thanks |
cp -r will copy recursively
|
Thanks! the problem wasn't the command I was typing, it was the directory name (upper case/spaces and numbers) Thanks again!
|
use tab
lets say the directory is in /root with name "gappu pad" type cp -r /root/gap<press tab here> target |
for spaces in names i usually put them "into brackets".
|
Quote:
cp -r abc/ xyz/ or if u want to copy a entire directory content then go in the directroy liks cd qwe/ cp -r * xyz/ |
directories with spaces "should" have a \ before the space for example
Code:
cp -r silly\ sally/ Code:
root@debian:/home/mgilbert# ls |
All times are GMT -5. The time now is 06:32 AM. |