Linux Delete special character Fu Zhengwen garbled file method

Source: Internet
Author: User
Tags syslog linux

Mark a moment.

[Root@lvsmaster ~]# LL

Total Dosage 44

Drwxr-xr-x. 3 root 4096 May 29 07:26 "

-RW-------. 1 root root 1372 May 07:37 anaconda-ks.cfg

-rw-r--r--. 1 root root 18796 May 07:37 Install.log

-rw-r--r--. 1 root root 4877 May 07:35 install.log.syslog

-rw-r--r--. 1 root root 795 October 15:02 sys.sh

Inexplicably appear such a directory

Drwxr-xr-x. 3 root 4096 May 29 07:26 "

How to delete it? Only through the node to delete special characters or garbled files

[Root@lvsmaster ~]# Ll-i

Total Dosage 44

5636107 Drwxr-xr-x. 3 root 4096 May 29 07:26 "

5636105-RW-------. 1 root root 1372 May 07:37 anaconda-ks.cfg

5636098-rw-r--r--. 1 root root 18796 May 07:37 Install.log

5636099-rw-r--r--. 1 root root 4877 May 07:35 install.log.syslog

5636138-rw-r--r--. 1 root root 795 October 15:02 sys.sh

[Root@lvsmaster ~]# find./-inum 5636107 |xargs RM-RF

or use

[Root@lvsmaster ~]# find./-inum 5636107-print-exec rm {}-RF \;

[Root@lvsmaster ~]# LL

Total Dosage 40

-RW-------. 1 root root 1372 May 07:37 anaconda-ks.cfg

-rw-r--r--. 1 root root 18796 May 07:37 Install.log

-rw-r--r--. 1 root root 4877 May 07:35 install.log.syslog

-rw-r--r--. 1 root root 795 October 15:02 sys.sh

For some simple characters or garbled characters you can delete files that need to be deleted in RM *

If you have a directory or file with the-a symbol, you can rm---A or RM./-a

This article comes from the "technology is tossing" blog, please be sure to keep this source http://viong.blog.51cto.com/844766/1036545

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.