I know this will delete everything in a subdirectory and below it:
rm -rf
But how do you delete everything in the current d
What I always do is type
rm -rf *
and then hit ESC-*, and bash will expand the * to an explicit list of files and directories in the current working directory.
The benefits are:
In fact, I like this so much that I've made it the default behavior for TAB with this line in .bashrc:
bind TAB:insert-completions