how to delete a folder in linux
Introduction
When we use a linux system, we can quickly delete a folder through the rm
command line,Delete all files and folders in the directory at the same time
This tutorial will teach youhow to delete a folder in linux
Command Line
Cascading delete test files
rm -ir test
Parameter Description
parameter | Introduction |
---|---|
rm | Remove one or more containers. |
ps | List containers. |
-i | prompt before every removal. |
-r | remove directories and their contents recursively. |
operation result
rm: remove directory 'test'?
Important reminder
It is recommended to delete the folder through -i to prevent direct deletion
Notice
If you have any questions in use, you can leave a message below, or submit issuse on github ♥