What is the best, least server intensive way to delete files / folders from some folder?
I have been told that it is by using find command:
delete all files in directory (empty directory)
delete everything including folders from some directoryfind /home/username/tmp/analog/ -type f -delete
delete only folders from some directoryfind /home/username/tmp/analog/ -delete
(there it asks to delete this whole directory, unless you add asterisk on the end)find /home/username/tmp/analog/* -type d -delete
Bookmarks