How to delete a folder in linux


 description

To quickly delete a folder through a command line in Linux, we created a folder named test, and now delete the folder through the command line

 command

rm -r test

 parameter

rm :  delete files
-r, -R, --recursive :  delete files and directories recursively

 result

rm: remove directory 'test'?
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.