Created
April 14, 2023 13:41
-
-
Save TGion/f019cab573bd16d6b1830db65b2fdad9 to your computer and use it in GitHub Desktop.
Some aliases and nice bash prompt
This file contains 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
export PS1='[\u@\H \w]\$ ' | |
# Alias | |
alias show.tables="pfctl -vvsTables" | |
alias show.badhosts="pfctl -t badhosts -T show" | |
alias show.pf="tcpdump -n -e -ttt -i pflog0" | |
alias show.pflog="tcpdump -n -e -ttt -r /var/log/pflog" | |
alias gh="history|grep" | |
alias add.badhosts="pfctl -t badhosts -T add" | |
alias reload.pf="pfctl -f /etc/pf.conf" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment