ps : show all proc by default.

This commit is contained in:
Dmitry Voronin 2023-12-08 15:09:09 +03:00
parent 099ba53782
commit 1c74307d46

View file

@ -1,12 +1,11 @@
# Find process and filter.
# Usage: ps <PROCESS>
# Usage: ps [PROCESS]
function ps() {
local process="${1}"
if [[ "${process}" = "" ]]; then
help ps
return 2
/usr/bin/ps aux
else
/usr/bin/ps aux | sed -n -e "1p" -e "/${process}/Ip"
fi
/usr/bin/ps aux | sed -n -e "1p" -e "/${process}/Ip"
}