Solved

how to delete this kind of file  or directory on linux

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
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…
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.

717 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