ps : show all proc by default.
This commit is contained in:
parent
099ba53782
commit
1c74307d46
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue