A blog about developing
  • A blog about developing

How to delete zero byte files in your folders

Posted on July 20, 2017 at 3:58 pm.

Written by segorev

It is easy peasy like this:

find . -type f -name "*.php" -size 0 -print0 | xargs -0 rm

And that’s all!

Tags: bash, files, linux, unix, zerobyte


Recent Posts
  • How to disable Gutenberg in WordPress
  • How to create a GraphQL schema with PHP and webonyx/graphql-php
  • The Details tag for creating disclosure widget
  • Error: MySQL said: Access denied for user ‘root’@’localhost’ in MySQL 5.7
  • How to add an extra parameters in Visual Composer
Recent Comments
  • segorev on How to change recipient email on send event in Contact Form 7 (WordPress)
  • Ryan on How to change recipient email on send event in Contact Form 7 (WordPress)
Archives
  • January 2022
  • February 2021
  • January 2020
  • February 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • April 2017
  • February 2017
  • December 2016
Categories
  • apache
  • contact form 7
  • frontend
  • google maps
  • graphql
  • Gutenberg
  • jade
  • jquery
  • modx
  • mysqld
  • notes
  • percona
  • php
  • Uncategorized
  • visual composer
  • woocommerce
  • wordpress
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org