Delete a file by its inode number First use ls -i to find the inode number of the file to be deleted ls -i |grep xxxxxx|awk '{print $2}'|xargs -i rm -f {} xxxxxx is the inode number of the file Delete files by size Delete files with zero size in the current directory and all subdirectories find ./ -size 0 -exec rm {} \; Delete files with zero file size in the current directory (subdirectories are not deleted) find ./ -maxdepth 1 -empty -type f -print -delete #-maxdepth specifies the directory level Summarize The above is the method I introduced to you to delete special character file names or directories in Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Vue page monitoring user preview time function implementation code
>>: MySQL 5.7.17 zip installation and configuration tutorial Solution to MySQL startup failure
Preface: In some previous articles, we often see ...
Preface This is a new function I came across rece...
This article shares the specific code of the pull...
1. <div></div> and <span></s...
@Font-face basic introduction: @font-face is a CSS...
Recently, during the development process, I encou...
1. What is HTML HTML (HyperText Markup Language):...
Table of contents Overview Performance.now Consol...
Table of contents Overview Form validation withou...
In HTML, the <img> tag is used to define an...
1. RTMP RTMP streaming protocol is a real-time au...
Bugs As shown in the figure, I started to copy th...
This article uses examples to describe common ope...
Table of contents 1. Concepts related to stored p...
Table of contents 1. System environment 2. Operat...