rm -r directory


rm -rf directory

an explanation can easily be retrieved with man rm, here is an extract:

-r, -R, --recursive
remove directories and their contents recursively
-f, --force
ignore nonexistent files and arguments
, never prompt

also from man rmdir:


Remove directory, this command will only work if the folders are empty.
use sudo before command if it displays permissions denied. 

Leave a Reply

Your email address will not be published. Required fields are marked *

To Resolve this issue at just 5$ from ServerExpert


For Hosting please visit Hostingwebsite.io

You have Successfully Subscribed!

Open chat