What is the linux command to copy contents from one folder to another folder

Asked

Viewed 21,773 times

0

I tried the following command

cp -avr origem destino

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

1 answer

4


This way you are taking the folder with the files inside. Try this way to take only the files.

cp caminhoDaPasta/* caminhoDoDestino/

The * indicates that all files will be copied.

  • apareceu omitting directory

  • 2

    solved using cp -avr wayDaPast/* wayDoDestino/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.