Search code examples
linuxrm

Removing files and folders using linux command


I have a folder in linux which content folders and many files with name format ".git**?".

how to remove theses files and folders using linux command ?

thanks


Solution

  • Use find as follows:

    find /path/to/folder -name ".git*" -print0 | xargs -0 rm -rf