Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux command to delete direcoty with specified name recursivel

# First find the directory names as to not accidentally delete important directories
find . -type d -name __pycache__
# If you want to recursively delete its contents, replace -exec rmdir {} ; by -delete or -prune -exec rm -rf {} ;. Other answers include details about these versions, credit them too.
find . -type d -name __pycache__ -prune -exec rm -rf {} ;
Comment

PREVIOUS NEXT
Code Example
Shell :: git checkout -q error: you need to resolve your current index first 
Shell :: sed replace first in file 
Shell :: win terminal turn off screen 
Shell :: powershell array index 
Shell :: wc - l 
Shell :: how to move file from one directory to another in linux 
Shell :: grep something before 
Shell :: running wordpress locally with valet 
Shell :: wifi drivers realtek 8852 for Ubuntu 
Shell :: git worktree prune 
Shell :: snap install ubuntu 
Shell :: Comparing Actual Changes Between Two Branches 
Shell :: cs50 docs 
Shell :: linux which sudo 
Shell :: enale scp in ubuntu 
Shell :: how to move files that begine with uppercase in linux 
Shell :: xargs curl url 
Shell :: Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1 
Shell :: docker secrets commands 
Shell :: how to check linux is ubuntu or centos 
Shell :: github claims I have a large file that 
Shell :: how to make pyinstaller build python program not open command prompt 
Shell :: how to install tar.gz setup of pycharm community 
Shell :: relead ngix 
Shell :: jupyter command install 
Shell :: query in github api 
Shell :: create file on terminal or git 
Shell :: find resolution of image terminal linux 
Shell :: or create a new repository on the command line 
Shell :: install font in react native 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =