I want to remove a directory in my /opt directory but I need sudo rights. To do it in Konsol, I'd use sudo rmdir /opt/whatever but the directory isn't empty and I'm not going to go through and delete every file and directory under it. How can I recursively remove this directory?
Announcement
Collapse
No announcement yet.
Remove Directory
Collapse
This topic is closed.
X
X
-
Re: Remove Directory
A powerful but dangerous command. Use with extreme caution:
Code:sudo rm -r directory
Be extremely careful with what directory you target. targetting the wrong one can have very adverse consequences.
- Top
- Bottom
Comment
Comment