linux:nice-to-know

This is an old revision of the document!


Nice to know Stuff


Find a spezific folder by name and delete it recursivly. Search down from current directory:

# find . -type d -name "@eaDir" -print0 | xargs -0 rm -rf

michael@backup-server:/mnt/backup-disk/web$ find . -type d -name "@eaDir"
./enjoy/img/@eaDir
./enjoy/img/base/backgrounds/@eaDir
./tools/images/@eaDir
./download/languages/@eaDir
./download/templates/default/@eaDir
./download/templates/@eaDir
./download/templates/simple_image_gallery/@eaDir
./download/@eaDir
./download/index_icons/michael/@eaDir
./download/index_icons/winvista/@eaDir
./download/index_icons/kde/@eaDir
./download/index_icons/apache/@eaDir
./download/index_icons/winxp/@eaDir
./download/index_icons/osx/@eaDir
./download/files/@eaDir
./download/files/programs/@eaDir
./download/files/programs/MorphVOX Pro/@eaDir
..

Find a spezific file by name and delete it. Search down from current directory:

# find . -type f -name "Thumbs.db" -print0 | xargs -0 rm -f

michael@backup-server:/mnt/backup-disk/web$ find . -type f -name "Thumbs.db"
./enjoy/img/Thumbs.db
./enjoy/img/base/backgrounds/Thumbs.db
./tools/images/Thumbs.db
./download/index_icons/michael/Thumbs.db
./download/index_icons/winvista/Thumbs.db
./download/index_icons/kde/Thumbs.db
./download/index_icons/apache/Thumbs.db
./download/index_icons/winxp/Thumbs.db
./download/index_icons/osx/Thumbs.db
./_index_content/Thumbs.db
./books/index_icons/michael/Thumbs.db
./books/index_icons/winvista/Thumbs.db
./books/index_icons/kde/Thumbs.db
./books/index_icons/apache/Thumbs.db
..



  • linux/nice-to-know.1515170410.txt.gz
  • Last modified: 2018/01/05 17:40
  • by michael