In centos, you can use the rm command to delete files. However, if you want to delete a file with garbled file names, you cannot directly use the rm command because the file name cannot be output at all. However, the find command can be used to delete it. In linux, each file has a corresponding constant inode number. you can use ls-li to view the inode number of the file, and find can be searched by inode number, in addition, other commands can be executed in the find command. Follow these steps: use ls-li to obtain the garbled characters to be deleted.
In centos, you can use the rm command to delete files. However, if you want to delete a file with garbled file names, you cannot directly use the rm command because the file name cannot be output at all. However, the find command can be used to delete it. In linux, each file has a corresponding constant inode number. you can use ls-li to view the inode number of the file, and find can be searched by inode number, in addition, other commands can be executed in the find command. Follow these steps:
Use ls-li to obtain the inode number of the file whose garbled file name is to be deleted. for example, the obtained result is 123456.
Delete
Find./-inum 123456-exec rm-rf {}\;
Note:"{}" Must be added with "\;".