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