I have a folder with multiple folders inside and i want to delete the main one With everything inside it.
How can i do this? Without giving every folder permissions.
-
- Posts: 18
- Joined: Fri Dec 29, 2017 6:39 pm
Re: Permissions folders within folders
You can forcibly remove a directory and all its contents regardless of who owns individual files by doing so as root. Be warned, this is dangerous as if you give the directory wrong you could potentially wipe the entire filesystem.TheTwister wrote: ↑Wed Jan 16, 2019 8:07 pmI have a folder with multiple folders inside and i want to delete the main one With everything inside it.
How can i do this? Without giving every folder permissions.
This will delete /home/pi/dir_to_remove and all its contents.
Code: Select all
$ sudo rm -rf /home/pi/dir_to_remove
She who travels light — forgot something.
Please note that my name doesn't start with the @ character so can people please stop writing it as if it does!
Please note that my name doesn't start with the @ character so can people please stop writing it as if it does!