Quote:
Originally Posted by slvfx
bob@bob-desktop:/var/local/seamonkey2$ # rm seamonkey-2.0(2).tar.bz2
bob@bob-desktop:/var/local/seamonkey2$ ls
seamonkey-2.0(2).tar.bz2
bob@bob-desktop:/var/local/seamonkey2$ # rm seamonkey-2.0(2).tar.bz2
bob@bob-desktop:/var/local/seamonkey2$ sudo rm seamonkey-2.0(2).tar.bz2
bash: syntax error near unexpected token `('
bob@bob-desktop:/var/local/seamonkey2$
|
Sorry, what I meant by the # at the start was you are root. By the look of it it should work if you do the sudo command again - it's a Ubuntu like thing is it? Assuming that's the way to be root? But this time do:
Code:
bob@bob-desktop:/var/local/seamonkey2$ sudo rm sea
Then hit <tab>
Autocompletes file name
<enter>
then it should remove the file.
The problem appears to be that ( is an illegal character in a file name, so it has to be 'escaped'. Putting a \ in front of each ( or ) should do it. seamonkey-2.0\(2\).tar.bz2. Sorry it is not strictly an illegal character it just gets misinterpreted.