How To Copy Files From Directory To Another Linux

RegisterLogin
How To Copy Files From Directory To Another Linux
Post Description: I Will Show You How To Copy Files From One Directory To Another Shell In A Linux Command Console Terminal Just Follow These Steps And It Will Give You The Command To Send And Execute For You To Copy And Paste
Tags: How, To, Copy, Files, From, Directory, To, Another, Linux
This Post Was Posted On Jan 18, 2010 By Webune Tutorials #3061
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
©2012 Webune Forums - Sat Dec 15, 2012 6:15 am
Powered by: Webune Forums V3