doug wrote:
I often am in one of my subdirectories and want to delete every file in that directory and every subdirectory below it. When I enter the delete command (whatever it is, I'm not at my regular computer at the moment) I get an error that says that the subdirectories are not empty. What command will delete EVERYTHING below where I am in the file structure with one entry?
The command to remove a subdirectory and all files contained therein is:
rm -rf directoryBe careful, this will NOT ask for confirmation and there is no undelete. Once those files are deleted,
they are gone.