remove files except some terminal code example Example: terminal remove files starting with find . -name 'name*' -exec rm {} \;