Solved

how to delete this kind of file  or directory on linux

Posted on 2014-09-10
3
162 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now