BeagleBoy
11-28-2007, 01:41 AM
Here's a full-featured copy of the ps command (as opposed to the busybox version). It's the same version as most linux distros come with.
It also includes a bare-bones passwd file (goes in /etc) so it prints "root" instead of "0."
Example:
tivo-d:/var/hack$ ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 10060 0.0 0.8 3572 792 ttyp0 Ss+ Nov19 0:00 /bin/bash --login
root 32010 0.0 1.0 3552 952 ttyS2 S+ Nov27 0:00 /bin/bash --login -m --
root 11744 0.0 1.3 3576 1204 ttyp1 Ss 02:38 0:01 /bin/bash --login
root 13323 0.0 0.9 2528 856 ttyp1 R+ 05:37 0:00 ps u
-Jim
It also includes a bare-bones passwd file (goes in /etc) so it prints "root" instead of "0."
Example:
tivo-d:/var/hack$ ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 10060 0.0 0.8 3572 792 ttyp0 Ss+ Nov19 0:00 /bin/bash --login
root 32010 0.0 1.0 3552 952 ttyS2 S+ Nov27 0:00 /bin/bash --login -m --
root 11744 0.0 1.3 3576 1204 ttyp1 Ss 02:38 0:01 /bin/bash --login
root 13323 0.0 0.9 2528 856 ttyp1 R+ 05:37 0:00 ps u
-Jim