dotfiles/.config/zsh/functions.zsh

12 lines
261 B
Bash

# general functions
## get parent and child processes for a given name
function psgrep {
ps axuf | grep -v grep | grep "$@" -i --color=auto;
}
## check active hosts on subnet
function getActiveHosts {
nmap -sP $(ip route | awk '/src/ {print $1}');
}