I trolled myself by “learning” that I could delete all files in a directory, including hidden files, with rm -rf ./*
. The mistake being that I (more than once…) accidentally put a space between the .
and /
.
I trolled myself by “learning” that I could delete all files in a directory, including hidden files, with rm -rf ./*
. The mistake being that I (more than once…) accidentally put a space between the .
and /
.
Rm was updated to actually log a warning in the
-rf /
cases, so that’s less likely to happen anymore. Still not a bad habit to use ls though