Linux How to Delete a Directory?
Contents How Do I Delete a Directory in Linux Terminal? Permissions Open the Terminal and Type This Command, Followed by a Space: Sudo Rm -Rf. Note: I Included...
Contents
How do I delete a directory in Linux terminal?
Permissions
- Open the Terminal and type this command, followed by a space: sudo rm -rf. NOTE: I included the “-r” tag in case the file is a folder you wish to delete.
- Drag the desired file or folder to the terminal window.
- Press enter, followed by entering your password.
How do I remove a directory in Ubuntu?
The “rm” command by itself will remove individual files, while adding the “recursive” option will make the command delete a folder and everything within it. Click on the Ubuntu logo in the upper-right corner of your screen. Type “Terminal” into the text field that will appear below your cursor.