BIK Web
2025.02.04 @ 0107
Linux: The FIND Command
When I re-configure the web server and the configurations cause errors, they are saved in the error_log files. Once there are errors, the error_log files will be saved on all levels. It is very annoying if you try to remove the files one by one.
To remove all the error_log files at once, please consider using the FIND command. Try execute this line:
find . -name “error_log” -delete
You can also modify the line to do other task, such as to remove all the PNG files:
find . -name “*.png” -delete
In the old days, we will probably use -exec rm -rf {} \; but newer Linux distributions support the -delete option with the FIND command.
© 2025 BIK