Solved

how to delete this kind of file  or directory on linux

Posted on 2014-09-10
3
171 Views
Last Modified: 2014-09-10
Dear Experts,

 I am using linux apache CentOS6, I tried a lot of suggestion from internet and still not able to delete this file/directory with this file/directory  name

 \267s\270\352\256Ƨ\250\ (2)/

And

\267s\274W\244\345\246r\244\345\245\363\ (3).txt

tried this
del  "\\267*.txt"
rm -rf "\\267*"

but both failed

Please advise

Rwniceing
0
Comment
Question by:rwniceing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40313914
perl -e 'unlink "\267s\274W\244\345\246r\244\345\245\363\ (3).txt" or warn $!'
perl -e 'rmdir "\267s\270\352\256Ƨ\250\ (2)/" or warn $!'
0
 
LVL 1

Author Closing Comment

by:rwniceing
ID: 40313921
thanks for your reply, it seems perl  is better than on-linux-shell command
0
 
LVL 84

Expert Comment

by:ozo
ID: 40313925
Each has it's advantages.
You might also try something like
rm -i *' (3).txt'
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question