On Tue, Jul 03, 2001 at 11:48:53AM +0800, louiem+ wrote: > > is it possible to limit the "ps ax"/etc.. ? commands on every user? > i mean, example i have the id/user "luwi" > > [EMAIL PROTECTED]> ps ax > > > it will only show the process which i ran, and not all the process that > the machine runs..
from "man ps", of course, i get-- $ ps T PID TTY STAT TIME COMMAND 1448 pts/1 S 0:01 -tcsh 15257 pts/1 T 0:00 -sh 19211 pts/1 S 0:00 mutt -y -e push Od 19232 pts/1 S 0:00 vim +/^$ -c set ft=mail tw=64 /tmp/mutt-server-19211-9 19358 pts/1 S 0:00 -usr/bin/tcsh -c (ps T) < /tmp/viybNY7N >&/tmp/voAVH0e9 19366 pts/1 R 0:00 ps T everything on "this" tty $ ps tpts/0 PID TTY STAT TIME COMMAND 15796 pts/0 S 0:01 bash 16093 pts/0 T 0:01 bash 26270 pts/0 S 0:00 /usr/lib/postgresql/bin/postmaster -D /var/lib/postgres/data 27210 pts/0 S 0:00 postgres: will inv [local] idle 27217 pts/0 S 0:01 postgres: will ed [local] idle 27218 pts/0 S 0:02 postgres: will ed [local] idle 27219 pts/0 S 0:02 postgres: will ed [local] idle 27220 pts/0 S 0:02 postgres: will ed [local] idle 27221 pts/0 S 0:02 postgres: will ed [local] idle 27223 pts/0 S 0:00 postgres: will inv [local] idle 27224 pts/0 S 0:00 postgres: will inv [local] idle 27226 pts/0 S 0:00 postgres: will inv [local] idle 27268 pts/0 S 0:00 postgres: will inv [local] idle 27274 pts/0 S 0:00 postgres: will inv [local] idle 27276 pts/0 S 0:00 postgres: will inv [local] idle 27282 pts/0 S 0:00 postgres: will inv [local] idle 28789 pts/0 T 0:01 more db/auction.sql 29018 pts/0 R 0:00 ps tpts/0 everything on tty "pts/0" ('ps t<tty-name-here>') $ ps --User mysql PID TTY TIME CMD 302 ? 00:00:00 mysqld 304 ? 00:00:00 mysqld 305 ? 00:00:00 mysqld everything actuve for real-user-id 'mysql' but careful if you try to pronounce $ ps fux some folks just don't have enough of a sense of humor. -- DEBIAN NEWBIE TIP #13 from Will Trillich <[EMAIL PROTECTED]> : How can you generate RANDOM EMAIL SIGNATURES? Many email clients have this feature -- for mutt, simply declare in your ~/.muttrc file something like send-hook debian- "set signature='~/.signature-debian |'" (note the quoted value ends with a 'pipe|' symbol) Then whenever you send email to any debian-* address, it'll append the output from your script, instead of appending a static file. Also see http://newbieDoc.sourceForge.net/ ...