I'm trying to copy a file with () in it.

Example: Super Mario World (USA).srm

I've tried: cp /media/usb/Super-Mario-World-"(USA)".srm and many others and I can't seem to find an answer on the web.

  • 2
    Try the quotes around the entire path and file name like this cp "/media/usb/Super-Mario-World-(USA).srm" not just around the quotes. Though the better solution would be to rename the file and remove the parens. Apr 30, 2017 at 12:44

1 Answer 1


The spaces are a problem here as well.

Example: Super Mario World (USA).srm

If it doesn't contain quotes of its own, you can just quote it:

cp 'Super Mario World (USA).srm'

Double or single are equivalent in this case (for the fine print see here). You can also use escapes on the spaces and parantheses, which is more awkward when there's a lot of them:

cp Super\ Mario\ World\ \(USA\).srm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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