Monday, 11 November 2013

Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

Yes, that is possible. Use “rm –r *” for this purpose. The rm command is for deleting files.
The –r option will erase directories and subdirectories, including files within. The asterisk represents all entries.

No comments: