What's difference between this:
sudo find /usr/local/mysql/data -type f -exec rm {} ';'
and this:
sudo rm -rf /usr/local/mysql/data
|
What's difference between this:
and this:
| ||||
|
feedback
|
sudo will make it run as root, then you use the So this will remove files recursively but it will NOT remove any directories. Also not that the
This command will completely remove everything in the given path, directories and files are removed. | |||||
feedback
|
|
The former will remove only files. The latter will remove the entire directory structure. | |||||||||||
feedback
|
|
| |||
|
feedback
|