Say I'm in the /
folder in a remote Linux machine I connect to over ssh
.
There's a folder called testapp
.
/testapp
I want to create an exact copy of this called:
/testapp-staging
Using a GUI I can just right click the folder, copy it then paste and rename it.
What command do I need to use for this?
Use the cp
command, but do it recursively:
cp -R /some/dir/ /some/other/dir/
If you want to print out each file copied, -Rv
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments