Just install adv-cmds from Cydia
Example:
Huang-Jiang-Bins-iPhone-3:/var/tmp root# ps -ef UID PID PPID C STIME TTY TIME CMD 0 1 0 0 0:02.48 ?? 0:02.84 /sbin/launchd 65 12 1 0 0:00.68 ?? 0:01.41 /usr/sbin/mDNSResponder -launchd 0 13 1 0 0:01.35 ?? 0:02.26 /usr/sbin/notifyd 0 14 1 0 0:00.43 ?? 0:00.89 /usr/sbin/syslogd 0 15 1 0 0:11.33 ?? 0:21.59 /usr/libexec/configd 501 18 1 0 1:18.83 ?? 5:33.48 /System/Library/CoreServices/SpringBoard.app/SpringBoard 25 19 1 0 0:05.75 ?? 0:10.48 /System/Library/Frameworks/CoreTelephony.framework/Support/CommCenter 0 24 1 0 0:00.44 ?? 0:01.61 /usr/libexec/lockdownd 0 27 1 0 0:00.06 ?? 0:00.34 /usr/sbin/fairplayd.N88 501 35 1 0 0:04.72 ?? 0:25.91 /usr/sbin/mediaserverd 0 36 1 0 0:02.85 ?? 0:07.97 /usr/libexec/locationd 25 37 1 0 0:00.28 ?? 0:00.43 /usr/bin/awd_ice2 501 38 1 0 0:00.41 ?? 0:00.58 /usr/sbin/accessoryd 501 52 1 0 0:01.32 ?? 0:02.43 /usr/libexec/lsd 501 113 1 0 0:00.93 ?? 0:04.24 /Applications/MobilePhone.app/MobilePhone 501 114 1 0 0:00.87 ?? 0:02.90 /Applications/MobileMail.app/MobileMail 501 119 1 0 0:00.48 ?? 0:01.35 /usr/sbin/BTServer 501 131 1 0 0:00.29 ?? 0:00.85 /Applications/MobileSlideShow.app/MobileSlideShow 501 136 1 0 0:00.63 ?? 0:01.36 /Applications/MobileMusicPlayer.app/MobileMusicPlayer 0 227 1 0 0:04.88 ?? 0:06.93 /usr/sbin/sshd -i 0 665 1 0 0:00.20 ?? 0:00.43 /usr/sbin/sshd -i 501 228 227 0 0:00.14 ttys000 0:00.19 -sh 0 677 228 0 0:00.38 ttys000 0:00.54 sh 0 740 677 0 0:00.01 ttys000 0:00.01 ps -ef 501 666 665 0 0:00.02 ttys001 0:00.07 -sh 0 671 666 0 0:00.04 ttys001 0:00.07 sh
One Response to how to install ps command in iPhone