> cp SOURCE DESTINATIONTo copy all files in a folder you would use:
> cp * /DESTINATION_FOLDERTo copy all files and sub-folders:
> cp -r * /DESTINATION_FOLDERTo copy all files & sub-folders while preserving the file timestamps:
> cp -rp * /DESTINATION_FOLDERTo copy all files & sub-folders while preserving the file timestamps and forcing overwrite:
> cp -frp * /DESTINATION_FOLDERAnd if the above forcing does not work in your environment, it is possible that you have an alias preventing the FORCE command from working.
Run the "alias" command to see if you have an alias for the cp command - it would look something links this:
> aliasTo remove the alias (temporarily for the current session) you would run:
> unalias cpVioala!
Was this answer helpful?
or Comment on Facebook
- Email, SSL
- 3 Users Found This Useful
One of the most common commands you will discover when dealing with a hosting server is the TAR...
The following commands can be used to synchronize the changes from one folder into another.Method...
This article is intended for Web Site Administrators with full control of a dedicated server,...
These instructions will work for any MySQL database installed on a Linux server. These...
Ioncube is a popular solution for encoding /encrypting PHP script before distribution. Most web...