You are not logged in.
Pages: 1
The other night, I installed sylpheed-claws on this box. In configuring it, I elected at one point to delete one mail account and identify it differently by re-entering it with a new name. Looking at the contents of /root this morning, I note
drwx------ 5 root root 120 Sep 28 02:56 ?y)?host.akr.ameritech.net
This entry appears just above the . and .. lines, not below them as does everything else in this directory.
Trying to remove this whatever-it-is, I run
rm -r /root/?y)?host.akr.ameritech.net
and get output
bash: syntax error near unexpected token `)'
Clearly this "thing" is flotsom and jetsom from the changes I made to sylpheed. But how to get rid of it?
jlowell
Offline
You could try:
rm -i *host.akr.ameritech.net
The asterisk (*) will try and match any filename. Adding the "host.akr.ameritech.net" after the asterisk means any filename that ends with that string of characters. The . is a way to escape the period which is also a regex symbol so we escape it to mean a real period. The -i to rm will prevent your from inadvertantly removing any files that you don't want to.
Cheers,
farphel
Follow the link below, sign up, and accept one promotional offer. If I can get five suckers (err... friends) to do this, I'll get a free iPod. Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142
Offline
farphel,
Oh my, when you have a question ask an expert, eh?
The offending entry is gone! Sylpheed works just fine! But I made one amendment to your recommended solution once I saw how things were developing in the terminal.
Your method of locating the strangely named entry worked like a charm but the command returned the output
rm: `20y)bhost.akr.ameritech.net' is a directory
rm: `mailhost.akr.ameritech.net' is a directory
Changing your command option to -ir brought two questions about decending into certain directories. Not knowing whether or not the subdirectories had any real value I took the risk of running your command with -rf as the option and that did it. More guts than brains, perhaps, but I knew that if the main directory were junk, anything below it in the hierarchy was also likely to be junk.
But I really must say, your knowledge is most impressive. I never would have know how to identify that "thing" without your help. Thank you!
jlowell
Offline
Pages: 1