Mac terminal directory issues

23 Views Asked by At

I previously had a bootcamp that I input labs in one folder but i made them all directories in my macOs terminal. I can't delete them. I tired to (rm -r) all but when I override them, they were all denied. They don't bother my ability to use terminal but its just not organized. I tried (rm -r) but denied the first directory and said command not found for the rest.

1

There are 1 best solutions below

2
HeroCC On BEST ANSWER

It sounds like you don't have write permissions on this directory. To get around this, try using the sudo command, which escalates your permissions. For example:

sudo rm -rf my-folder/