|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Apache - Shell - Copy/Rename Folder
Hey all.
I have been searching the web all morning trying to find the action for copying and renaming a folder via Shell. So here is what I need to do: * "A" directory has my content that I want to copy over. * Using some kind of shell statement, "A" directory is copied over to a new "B" directory and the files are copied over as well. Anyone know how to do this with 1-2 statements? Thanks. |
|
#2
|
|||
|
|||
|
Assuming that you are in a Linux environment then you can use the 'cp' or 'rsync' commands. If you simply want to copy the contents of A to B then I would recommend the following command:
cp -r A B In the above 'A' is the source directory (directory to be copied) and B is the destination directory (directory to be copied to). The '-r' option means to copy recursively. You can run 'man cp' and 'man rsync' from the command line to obtain more information on the use of those commands and the options available. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Apache - Shell - Copy/Rename Folder |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|