Linux Delete Files Keep Directories at barbarajlawsono blog

Linux Delete Files Keep Directories. // get all contents in directory. So in your example, assuming you're in the parent.

Remove/Delete Files/Directories in Linux with rm
from www.linuxscrew.com

You may need to add the path if the file. // get all contents in directory. how to remove files in linux.

Remove/Delete Files/Directories in Linux with rm

Linux Delete Files Keep Directories // get a list of all directories. If you want to remove a single file, simply use the rm command with the file name. Rm won't delete directories by default. So in your example, assuming you're in the parent.