Академический Документы
Профессиональный Документы
Культура Документы
directory
cp
5 Answers
cp -r /home/server/fol
65
answered Jan 27 '13 at 17:21
James McLaughlin
16.8k 39 51
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
2 if i need to copy
Terms of Service. Only all files in
https://stackoverflow.com/questions/14549967/centos-copy-directory-to-another-directory 1/4
5/6/2019 linux - CentOS: Copy directory to another directory - Stack Overflow
test
directory(without
test directory) to
/home/server/ .
how to ? –
BaTmaN Jan 27
'13 at 18:06
13 cp -r
/home/server/fold
er/test/*
/home/server/ –
James McLaughlin
Jan 27 '13 at 18:27
is there any
difference in using -
R in here ? –
mahen3d Jun 1 '15
at 5:32
If there's a directory
inside test
directory, yes there
is a difference. –
John Smith Feb 1
'17 at 4:11
cp -r /home/server/fol
3
Thanks for this.
Copying files no
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
problem, copying
Terms of Service. files and hidden files
https://stackoverflow.com/questions/14549967/centos-copy-directory-to-another-directory 2/4
5/6/2019 linux - CentOS: Copy directory to another directory - Stack Overflow
was an elusive
problem. +1 – Nate
Sep 4 '15 at 23:17
In my case, in order
to save time, I
specify the current
directory like this: $
cp -r ./Origin/.
./Destination/ –
Pathros Mar 13 at
23:07
As I understand, you
want to recursively
14 copy test directory into
/home/server/ path...
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
https://stackoverflow.com/questions/14549967/centos-copy-directory-to-another-directory 3/4
5/6/2019 linux - CentOS: Copy directory to another directory - Stack Overflow
cp -r /home/server/fol
1
edited Feb 5 at 4:34
For example
cp -r /home/hasan /
cp /home/file /ho
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
https://stackoverflow.com/questions/14549967/centos-copy-directory-to-another-directory 4/4