bash_aliases/misc.aliases
2022-02-01 15:03:35 -05:00

30 lines
541 B
Plaintext

# view last 100 entries for service in journalctl
jctl ()
{
journalctl -u $1.service -n 100
}
alias jctlerr='journalctl -p 3 -xb'
# Clear screen and show neofetch
alias neo='clear && neofetch'
neo ()
{
if which neofetch >/dev/null;
then
clear && neofetch
else
echo "neofetch not found in PATH"
fi
}
# Find Pids of process
alias pidfind='ps auxww | grep'
# Get Public IP
alias extip='curl icanhazip.com'
# Show resource hogs
alias mem5='ps auxf | sort -nr -k 4 | head -5'
alias cpu5='ps auxf | sort -nr -k 3 | head -5'