Last active
October 22, 2018 13:05
-
-
Save Kasahs/ff678ac96a43aee746a9 to your computer and use it in GitHub Desktop.
List of usefull linux commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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