From 8641176c0cc3cd0ecd2eed1246219aa8ab9b0723 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 23 Nov 2021 11:49:50 -0800 Subject: [PATCH] updated linux notes --- linux_notes.txt | 4 ++++ 1 file changed, 4 insertions(+) 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