29 lines
515 B
Plaintext
29 lines
515 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 fastfetch
|
|
neo ()
|
|
{
|
|
if which fastfetch >/dev/null;
|
|
then
|
|
clear && fastfetch
|
|
else
|
|
echo "fastfetch 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'
|