I was just working on my kernel project. when I extracted the .iso file, I got everything I expected, all except for that the "boot" and "system" directories were with some lock symbol to free up space, I deleted the files (outside the directories) but unable to delete those 2 folders in the "files" application – even the content.
While using rmdir in the terminal, it says "permission denied", even with root access. (also tried "sudo rmdir").
How to fix, please?
>Solution :
First, try removing it recursively and forcefully:
sudo rm -rf /path/to/directory
If sudo is not working then try logging in as root to recursively delete the directory:
sudo su # Login as root
rm -rf /path/to/directory # remove the directory