Score:0

Copy files from one folder to another

mn flag

Rather new at Ubuntu so help would be greatly appreciated.

I need time copy basically this media/directoryA/directoryB/any file based on a certain .ext

Then I need to copy that back to music/directory and structure above.

Thoughts?

Score:1
kn flag

Do you want to copy all .ext files from media/directoryA/directoryB to music/directory?

If yes, try the following command:

cp media/directoryA/directoryB/*.ext  music/directory/

If the media directory and the music directory are not in the same path, it is recommended to use absolute paths for both paths of the command.

Score:0
cn flag

#Important: Get the exact and proper file locations.

Suppose I want to copy all the .ext files to a specific directory.

  • The directory of the file to be copied is:/media/user/Archive/2023/
  • Directory of the folder where the file will be copied: /home/user/Music/collection

Command to be given is: sudo cp -v fromDIR/*.filetype toDIR

  • sudo cp -v /media/user/Archive/2023/*.ext /home/user/Music/collection/

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.