To delete all files which name has name, you can use it:
find . -name 'name*' -exec rm {} \;
Article ID: 122
Created On: Wed, Feb 1, 2023 at 10:06 AM
Last Updated On: Wed, Feb 1, 2023 at 10:06 AM
Authored by: Saeed Nobakht [[email protected]]
Online URL: https://www.navel.ir/article/how-to-remove-all-files-starting-with-a-certain-string-in-linux-122.html