1

How to remove all files and subdirectories in a directory WITHOUT deleting the directory in bash?

view story
linux-howto

http://askubuntu.com – Sorry, I know this must have been asked before but I couldn't find it... Is there a command to remove all files and subdirectories in a directory WITHOUT deleting the directory? For example if I have directory "dontDeleteMe" with subdirectories "1", "2", "3" and each subdirectory has a few pictures in it, how can I remove the subdirectories "1", "2", and "3" and all the files in the them, without removing the parent directory "dontDeleteMe"? (HowTos)