Basic CommandsLesson 12Free preview
Bash Remove (rm)
This lesson is part of Bash · All levels
Summary
The rm command permanently deletes files and directories, without going through the trash. For the folder, the -r option is required, and -f is used to force unconfirmed deletion. Because it is permanent, use it carefully and check the contents of the target first.
Key points
- Rm file permanently deletes the file
- r is required to delete the directory
- I asked for confirmation, -f forced without asking.
- Rm doesn't move files to trash
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.