Linux command line to delete all files and folders in current directory

In Linux, “cd” your way to the directory you want to completely clean out, then type:

I suggest going into the directory first, then “ls” to list the contents so you can see what you’re deleting before using this command, though!

Aaron Belchamber has written 243 articles

Leave a Reply

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