Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'See complete output of ps command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See complete output of ps command
Authored by: kholburn on Jul 27, '05 11:01:52AM
Here is a bash function I use for ps. I find this has information I usually need.


$ type myps
myps is a function
myps () 
{ 
    if [ $# -gt 0 ]; then
        ps -awwwxo "pid ppid %cpu %mem user command" | egrep "PID|$1" | grep -v grep;
    else
        ps -awwwxo "pid ppid %cpu %mem user command" | grep -v grep;
    fi
}
also this for when I need to see the environments:

$ type pse
pse is a function
pse () 
{ 
    if [ $# -gt 0 ]; then
        ps -awwwexo "pid ppid %cpu %mem user command" | egrep "PID|$1" | grep -v grep;
    else
        ps -awwwexo "pid ppid %cpu %mem user command" | grep -v grep;
    fi
}



[ Reply to This | # ]