thanks for visiting us today.

Webune Offers Web Hosting like PHP and MySQL - Let us be your web hosting provider!!!

to copy one file or folder from one to another is easy using the cp command

lets say for example i have a directory i want to copy the exact files in it this is what i would do

i want to copy:

from: /var/www/html/index.html

to: /home/users/webune/

command:
cp /var/www/html/index.html /home/users/webune/


so basically cp oritinal_file Path_to_new_location

how about if you want to rename the file at the same time while you are coping, so lets say i want to rename the index.html file to index.php i can send this command:

command:
cp /var/www/html/index.html /home/users/webune/index.php


hope that helps