Copy a directory with all its contents in CentOS
This command will copy a directory with all its content to another directory,
for example you have a directory named x, you want to copy it to another directory named y
cp -dpr x y
That’s it!
Hello. My name's Kate. I love Linux, WordPress - owned a WordPress dedicated design studio, a beginner entrepreneur who co-founded Asia software company. This is where i blog about Linux, WordPress, daily life and other interesting stuff
Status: -
This command will copy a directory with all its content to another directory,
for example you have a directory named x, you want to copy it to another directory named y
cp -dpr x y
That’s it!
This site powered : WordPress. Made with PC (sorry, MAC), Coffee and Tofu
Leave a Reply