o9s
is a microblog
home archives search feed blogroll


rm Everything

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.

alias rm="rm -rf"
Posted on 2018-04-21   #bash  






← Next post    ยท    Previous post →