Skip to content
Blog List empty directories using the command ‘find’

List empty directories using the command ‘find’

This is what i tried to list all empty directories :

~$ find . -type d -empty

and this is what i got

./.config/transmission/torrents
./.config/transmission/blocklists
./.config/transmission/resume
./.gnome2/eog
./.gnome2/panel2.d/default/launchers
./.gnome2/file-roller
./.update-notifier
./.dosemu/drive_c/tmp
./Templates
./.themes
./.kde/share/mimelnk
./.kde/share/servicetypes
./.kde/share/apps/amarok/albumcovers/cache
./.kde/share/apps/amarok/undo
./.kde/share/apps/konqueror
./.kde/share/applnk
./.kde/share/services
./.gimp-2.6/tmp
./.gimp-2.6/gfig
./.gimp-2.6/scripts
./.gimp-2.6/plug-ins
./.gimp-2.6/gimpressionist
./.gimp-2.6/tool-options
./.gimp-2.6/curves
./.gimp-2.6/themes
./.gimp-2.6/fonts
./.gimp-2.6/levels
./.gimp-2.6/interpreters
./.gimp-2.6/templates
./.gimp-2.6/modules
./.gimp-2.6/gflare
./.gimp-2.6/brushes
./.gimp-2.6/fractalexplorer
./.gimp-2.6/environ
./.gimp-2.6/patterns
./.gimp-2.6/palettes
./.gimp-2.6/gradients
./.icons
./.adobe/Flash_Player/AssetCache/K2USXEKE
./Public
./Videos
./Pictures
./.gvfs
./Documents/My Music
./Documents/KMPlayer/PlayList
./Documents/KMPlayer/Logo
./Documents/KMPlayer/Capture
./Documents/My Videos
./Documents/My Pictures
./.gegl-0.0/swap
./.amaya/5
./.amaya/libwww-cache
./.amaya/3
./.amaya/7
./.amaya/13
./.amaya/11
./.amaya/17
./.amaya/0
./.amaya/6
./.amaya/18
./.amaya/10
./.amaya/15
./.amaya/19
./.amaya/9
./.amaya/1
./.amaya/12
./.amaya/8
./.amaya/annotations
./.amaya/2
./.amaya/16
./.amaya/14
./.amaya/4
./.java/deployment/tmp/si
./.emerald/themes
./Music
./.gnome2_private
./shovell/tmp/sockets
./shovell/tmp/pids
./shovell/tmp/sessions
./shovell/tmp/cache
./.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
./.mozilla/firefox/vkuuxfit.default/extensions
./.gem/ruby/1.8/specifications
./.gem/ruby/1.8/gems
./.gem/ruby/1.8/doc
./.gem/ruby/1.8/cache

A long list….hmm..

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.