Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I cannot delete a file in my /home folder.
Terminal output give me the message:

~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) 
   bash: ошибка синтаксиса около неожиданной лексемы '('

Roughly translated:

~$ rm /home/goldap/Загрузки/Put Don Kihota (1934) 
   bash: syntax error near unexpected token '('
share|improve this question
add comment

1 Answer 1

As far as I see it, (And google translate tells me) you need to escape ( and ). Like this:

~$ rm /home/goldap/Загрузки/Put\ Don\ Kihota\ \(1934\)

Another way to accomplish this, would be to put it in single-quotes.

~$ rm '/home/goldap/Загрузки/Put Don Kihota (1934)'
share|improve this answer
4  
In fact it should say rm /home/goldap/Загрузки/Put\ Don\ Kihota\ \(1934\). Usually typing the beginning of the file name and pressing the tab key will do the job for you. –  David Mar 13 '13 at 8:24
    
Whops. My fault. Correcting. –  Frederik Spang Mar 13 '13 at 8:25
    
putting the path into single quotes should do the same thing, shouldn't it? e.g. rm '/home/goldap/Загрузки/Put Don Kihota (1934)' –  Glutanimate Mar 13 '13 at 11:31
    
Single quotes gives the same result, yes. –  Frederik Spang Mar 15 '13 at 9:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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