title: How to Copy contents in a directory to my current directory in shell?
body: <p>Let's say I have a directory called A. </p>
  
  <p>Directory A has a bunch of c files, and I want to cp all of these files to the directory the script is running in (in the case it would be Home in the linux system). </p>
  
  <p>To make sure it successfully copied I would then echo whatever was copied.  </p>
  
  <p>This is what I have tried:  </p>
  
  <pre><code>cp -r A Home/  
  
  echo `.c` # prints the files that have a .c at the end after they get copied
  </code></pre>
  
  <p>However the error I am getting is that the directory doesn't exist even though the directory is also in the Home directory. I also tried changing it to another directory which didn't seem to work either. </p>
  
  <p>Another problem is that this doesn't copy to the current directory it copies to home. I used this list to see if there is a shell command, but couldn't find a copy command that allows me to place the files in the directory the script is running in. </p>
  
  <p><a href="https://www-xray.ast.cam.ac.uk/~jss/lecture/computing/notes/out/commands_basic/" rel="nofollow">https://www-xray.ast.cam.ac.uk/~jss/lecture/computing/notes/out/commands_basic/</a></p>