A simple command
Stephen Liu
satimis at yahoo.com
Sun Nov 12 16:09:39 UTC 2006
Hi Mario,
> 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
> as
>
> 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
Tks. Good suggestions to me. I'll take your alternatvie suggestion.
B.R.
Stephen
More information about the ubuntu-users
mailing list