diff --git a/linux_notes.txt b/linux_notes.txt index 74b0b828..f34d4451 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -185,6 +185,10 @@ rm -d directoryname To remove a directory with files in it: sudo rm -r directoryname +To remove all files within the current directory that start with a particular prefix: + +find . -name 'prefix*' -exec rm {} \; + To securely delete a file (keep in mind this is not perfect, the only way to securely delete files is to physically destroy the hardware): shred -u -z filename