Deleting All Hidden Files and Folders in Linux

Deleting All Hidden Files and Folders in LinuxWithout further ado, let’s get straight to the commands.Enter the following in the terminal:

Delete all .gitignore files in Linux:

find . -name ".gitignore" | xargs rm -Rf

Delete all .git folders in Linux:

find . -name ".git" | xargs rm -Rf

Delete all .github folders in Linux:

find . -name ".github" | xargs rm -Rf

Delete all .vscode folders in Linux:

find . -name ".vscode" | xargs rm -Rf

Deleting All Hidden Files and Folders in Linux

Leave a Comment