What is the command in linux to copy the contents of a folder to another folder [closed]

-1

I tried the following command

cp -avr origem destino

The problem is that the command creates a folder inside the destination and inside it the content. What I want is the content directly in the folder without creating another folder

    
asked by anonymous 12.10.2015 / 14:34

1 answer

3

That way you're taking the folder with the files you have inside. Try this way to take only the files.

cp caminhoDaPasta/* caminhoDoDestino/

The * indicates that all files will be copied.

    
12.10.2015 / 14:49