A simple command

Mario Vukelic mario.vukelic at dantian.org
Sat Nov 11 16:49:54 UTC 2006

On Sat, 2006-11-11 at 08:16 -0700, jim barnes wrote:
> $ ps ax | egrep '/apache2|/mysql|/postfix'

Which of course is a lot to type :) 

To the OP: you might want to set up a shell alias for this command, such

alias svrstat="ps ax | egrep '/apache2|/mysql|/postfix'"

To make it permanent, put it into your .bashrc file.

Alternatively, create your own little shell script and stick it
into /usr/local/bin. (Don't forget to make it executable.) You can
either just enter the ps expression from above, but you can also make it
arbitrarily complex

More information about the ubuntu-users mailing list