Add proc-grep
This commit is contained in:
parent
f5553fc8fb
commit
47a2274375
@ -158,3 +158,12 @@ wg-cat() {
|
|||||||
sudo cat /etc/wireguard/$1.conf
|
sudo cat /etc/wireguard/$1.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Search for a process
|
||||||
|
proc-grep() {
|
||||||
|
if [ $# != 1 ]; then
|
||||||
|
echo "Usage: proc-grep <regex>"
|
||||||
|
else
|
||||||
|
ps aux | { head -1; grep $1 }
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user