updated linux notes

This commit is contained in:
tomit4 2021-11-23 11:49:50 -08:00
parent 6dde7a098c
commit 8641176c0c

View file

@ -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