Hello everyone

Sometimes a lot of test files are generated on linux
But you want to delete a specific type of data in a specific folder
For example, a temporary file
You can refer to the following instructions

 

find dirname/ -name '*.tmp' -delete

 

find is the search command
-name is the search file name
-delete is to delete

For your reference