×


How to delete all files in the current directory in Linux ?

There is an easy method to delete all files in the current directory, including all its sub-directories by using a single command?


To do this, run the command shown below;


rm –r *


The rm command is specially made for deleting files. 

The –r option will delete directories and subdirectories, including files within it. 

The asterisk * represents all entries. 


For more Linux Tips, take a look at our Linux Resources 


For urgent Server Management Services