A simple command
satimis at yahoo.com
Sun Nov 12 16:09:39 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,
> 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
> arbitrarily complex
Tks. Good suggestions to me. I'll take your alternatvie suggestion.
More information about the ubuntu-users