Hi there 👋

Welcome to my blog

Linux Find Command

Linux Find and Remove find . -name '.git' -type d -prune -exec rm -rf '{}' \; Here’s what it does: find . searches the current directory and its subdirectories. name '.git' matches files and directories named .git. type d makes the command only consider directories (since .git is a directory). prune prevents find from descending into the current file if it is a directory, which helps when you’re wanting to remove the directory itself....

September 17, 2023 Â· 1 min Â· 123 words Â· Me