Differences
This shows you the differences between two versions of the page.
tech:linux:delete_files_but_not_directories [2014/11/15 09:13] |
tech:linux:delete_files_but_not_directories [2014/11/15 09:13] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Command to delete files but not directories (folders) ====== | ||
+ | |||
+ | <code bash> | ||
+ | find . -type f -exec rm {} \; -print | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ---- | ||
+ | Keyword: Unix, Linux, ubuntu | ||