Score:0

How to copy a file from a subdirectory into another subdirectory?

ca flag

I have a directory, Documents with 2 subdirectories, A and B. I'm trying to copy a file from subdirectory A to subdirectory B.

Soren A avatar
mx flag
So, what have you tried, and what was the results ? Are you usingterminal or file-manager app ?
Score:1
jp flag

In Nautilus (drawer icon):

  1. Navigate to your file
  2. Right click
  3. Select "Copy to …"

In the terminal: cp ~/Documents/A/[filename] ~/Documents/B/

Score:0
in flag

Assuming you know how to navigate to directories in the terminal

at the prompt of the current directory (Subdirectory A)

type ls to display the contents. You can copy the filenames and replace the myfile ... etc in the below line with the filenames and then the path of the destination directory mydir (Subdirectory B)

cp myfile myfile2 myfile3 mydir

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.