Assuming I'm not in my home directory, I want to copy all the files starting with "a" from my home directory to my current directory.

I've tried cp ~ a* . and different variations of that but it hasn't worked at all. Thank you.

Edit: *Thank you again

  • 2
    Super-fast answers you've received! Oct 15, 2011 at 19:22

3 Answers 3


This should do the trick:

cp -r ~/a* <path-to-end-directory>

Your current directory is ., the directory above you is .. .

So the exact command you'd want is cp -r ~/a* .


cp ~/a* . should work.


The solution would be cp ~/a* .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.