Skip to content

Instantly share code, notes, and snippets.

@Kasahs
Last active October 22, 2018 13:05
Show Gist options
  • Save Kasahs/ff678ac96a43aee746a9 to your computer and use it in GitHub Desktop.
Save Kasahs/ff678ac96a43aee746a9 to your computer and use it in GitHub Desktop.
List of usefull linux commands
# if you accidentally polluted your terminal with bad commands
# and you want to prevent this session from being written to bash_history use
$ unset HISTFILE
# This will kill your shell right away without the shell being able to do anything
# such as trap the signal, save history, execute ~/.bash_logout, warn about stopped jobs, or any of that good stuff.
$ kill -9 $$
# incase you desroyed your bashrc revert to default
/bin/cp /etc/skel/.bashrc ~/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment