You usually use
rm to delete a file and
rm -rf to delete a directory. You can also use
rm -rf to delete a file. Why not alias
rm -rf to
rm and be able to use
rm to delete everything, whether it be a file or a directory.
Posted on 2018-04-21 #bash
alias rm="rm -rf"