• Greenman@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    To avoid rm mistakes in the future, you could set an alias that always provides the “-i” flag which makes the command prompt you with y/n before the deletion. Another solution is to alias rm for trash-cli commands to move files to the trash like when you delete files in your graphical file manager.