简体   繁体   中英

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

使用find ,如下所示:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM