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