I have a web project with the following structure:
application/
dumps/
nginx/
logs/
.git/
docker-compose.yml
Dockerfile
README.md
.gitignore
For several reasons, I would like to dissolve the application folder and copy all files to the root directory. I would like to do this as usual via the CLI. However, I am not getting anywhere at the moment.
I have tried the following. I am in the root of the project.
cp -r application/ ./
// output cp: 'application/' and './application' are the same file
cp -r app/. ./
// copy only the root files from application to the project root and not the folders.
Which is kind of logical. How do I formulate the command so that it only copies the files to the root? It's probably just a small thing but it's too early for me.
*.*
is almost never what you want since that will only match files or directories that have a.
in their name. To match everything, you just want*
. – terdon Nov 19 '21 at 19:07