This question already has an answer here:
- How to delete a non-empty directory in Terminal? 5 answers
i was unsuccessful for installing jdk8 and i want to delete the java folder in my usr/local.
cd /usr/local rm java error :rm: cannot remove ‘java’: Is a directory rmdir java error :rmdir: failed to remove ‘java’: Permission denied
what is the accurate cmd line?