ede_linux
(usa Ubuntu)
Enviado em 16/12/2015 - 12:07h
Olá,
Como fazo para apagar pastas que não estão vazias? Com o comando rm sei que basta adicionar o atributo -R, mas aqui não se aplica, pois já expriementei e não dei, obrigado
root@user:/home/user# find -type d -iname Virtualbox* -delete
find: cannot delete `./.config/VirtualBox': Directory not empty
find: cannot delete `./.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox': Directory not empty
find: cannot delete `./.vagrant.d/boxes/07/0/virtualbox': Directory not empty
find: cannot delete `./.vagrant.d/boxes/06/0/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/02/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/05/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/03/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/07/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/04/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/01/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/08/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/09/.vagrant/machines/default/virtualbox': Directory not empty
find: cannot delete `./Documents/projectos/02/06/.vagrant/machines/default/virtualbox': Directory not empty
root@user:/home/user# find -type d -iname Virtualbox* -print0
./.config/VirtualBox./.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox./.vagrant.d/boxes/07/0/virtualbox./.vagrant.d/boxes/06/0/virtualbox./Documents/projectos/02/02/.vagrant/machines/default/virtualbox./Documents/projectos/02/05/.vagrant/machines/default/virtualbox./Documents/projectos/02/03/.vagrant/machines/default/virtualbox./Documents/projectos/02/07/.vagrant/machines/default/virtualbox./Documents/projectos/02/04/.vagrant/machines/default/virtualbox./Documents/projectos/02/01/.vagrant/machines/default/virtualbox./Documents/projectos/02/08/.vagrant/machines/default/virtualbox./Documents/projectos/02/09/.vagrant/machines/default/virtualbox./Documents/projectos/02/06/.vagrant/machines/default/virtualboxroot@user:/home/user#