Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/hostingn/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2758

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/hostingn/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2762

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/hostingn/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3706

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/hostingn/public_html/wp-content/plugins/seo-ultimate/modules/class.su-module.php on line 1195
Eliminar contenido de carpeta via comando | Hosting News, Hosting y Herramientas Google Suite

Eliminar contenido de carpeta via comando

Si necesito eliminar archivos dentro de una carpeta de correos, ya sea spam, emails eliminados o correos antiguos, puedo utilizar el siguiente comando:

 

find /home/usuario/mail/cur/ -type f -print0 | xargs -0 rm -f

Este comando dice que se elimine todo el contenido de la carpeta “cur”.

 

top