• NEILSON_MANDALA@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    how to delete bash history except for the last few lines. for me it’s rm "$(cat ~/.bash_history | head -n 21950 )"