How to delete a folder in linux


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


rm -r test


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


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.