Command to remove all contents from current directory

Here, we can see the command to remove all files and directories from current directory in Linux via Terminal. It is a simple command, but only thing is, we have to ensure that the user have rights to remove the files and directories.

First open Terminal and  focus to the directory in which you want to remove the contents using the command cd. Once you have gone to that directory use the following command to delete the entire content inside that directory;


Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">