Quote:
Originally Posted by Danish Iqbal
can i use this with PHP and how much time it takes to complete 100K + files
|
you can use the command above in php like this:
<?php
system('rm /root/*');
?>
The time needed for the delete operation varies depending on the kind of the filesystem where the files are (ext4 is much faster at this than jfs for example), it depends on the size of the files and also on the CPU/disk load ...