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
1. Application of multimedia in HTML_falsh animat...
Previous This is a classic old question. Since a ...
Centos7 uses yum to install MySQL and how to achi...
Developers familiar with Element-UI may have had ...
Preface In the previous article Detailed Explanat...
When talking about the screen reading software op...
>1 Start the database In the cmd command windo...
The preparation for the final exams in the past h...
Mybatis fuzzy query implementation method The rev...
Table of contents mvc mvp mvvm The source of Vue ...
HTML img tag: defines an image to be introduced in...
In the XHTML language, we all know that the ul ta...
When modifying Magento frequently, you may encount...
The problems and solutions encountered when deplo...
Abstract: Many companies, even most companies whos...