- Forums
- Linux
- How To Copy Files From Directory To Another Linux
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 [3280], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Mon Jan 18, 2010
0 Comments
420 Visits
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