Last Updated: 2022-05-26
There is a risk that
rm can remove parent directories
.. if unused
$ rm * (this skips hidden dot files. It is totally safe)
rm .* deletes hidden files in current directory. At least on macos, it doesn't go near
Even if it did go near
.. it is usually OK because
rm without any options does not touch directories.
But then there is danger that rm was remapped to
rm -rf and then the
.. directory is at risk.
Therefore interactive mode is your friend:
rm -i .* when you are uncertain.