Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to find empty directories in linux

find . -type d -empty # use this to find the empty files

find . -type d -empty -delete #use this to delete all empty dirctories
 
PREVIOUS NEXT
Tagged: #find #empty #directories #linux
ADD COMMENT
Topic
Name
1+7 =