gamecreature

Published

30 December, 2020

gamecreature in Hacking | 30 December, 2020

Quick way to delete to many files in the current directory (argument list to long)

 find . -type f -delete

When it's really you can use the folowing perl command to delete all files. (I had a situation with 3 milion files)

cd /folder/to/delete-files
perl -e 'for(<*>){((stat)[9]<(unlink))}'

Reference: https://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux

gamecreature

Published

30 December, 2020

  • Related Content by Tag
  • freebsd
  • unix
Independent Publisher empowered by WordPress