How To Copy All Files In A Directory With Linux

RegisterLogin
How To Copy All Files In A Directory With Linux
Post Description: Copying Files From A Directory Is Easy In Unix If You Have A Linux Server You Can Access Your Shell Console Terminal To Send Commands
Tags: How, To, Copy, All, Files, In, A, Directory, With, Linux,
This Post Was Posted On Oct 12, 2009 By Webune Tutorials #2556
Welcome to Webune Support Forums.
We offer dedicated Linux Servers.

today we are going to show you how you can copy all of the files in a directory.

lets say i have a website on my server and all the files for the website are located in the www directory:

/home/mydomain/web/www/


and i want to copy all the to another directory at:

/home/otherdomain/web/public_html


ok this is the command to copy the files

cp -rf /home/mydomain/web/www/ /home/otherdomain/web/public_html


thats it

the basic syntax for copy is:

copy this_file.txt to_this_file.txt
[NOTE: if to_this_file.txt does not exists, it will create it automatically]


©2011 Webune Forums - Mon Dec 19, 2011 6:04 am
Powered by: Webune Forums V3