Steve -
On Fri, Sep 19, 2003 at 06:32:24PM -0600, Steve Dibb wrote:
> Well, that's what it would run, yes. So service apache stop would do
^^^^^^^^^^^^^^^^^^^
> /etc/init.d/apache stop. But how would I write a similar alias?
^^^^^^^^^^^^^^^^^^^^^^^
One is 19 characters and the other is 23 characters. Unless you use
tab complete, in which case the second line could be reduced to 13
(maybe 14) keystrokes:
/e[tab]in[tab]ap[tab] stop
The other reduces to only 16 keystrokes, if you're lucky:
ser[tab] apache stop
To answer your question... just add something like this to your
.bashrc:
alias apstop="/etc/init.d/apache stop"
alias apstart="/etc/init.d/apache start"
...
FYI, you can get a list of everything you can start and stop with 8
keystrokes:
/e[tab]in[tab][tab][tab]
If you need some practice with bash, you can write your own script to
implement the ``service'' functionality. I don't think Debian has any
packages that do this for you.
Mike
--
------------------------------------------- | ---------------------
Michael Halcrow | [EMAIL PROTECTED]
Developer, IBM Linux Technology Center |
|
Where did you want to go yesterday? |
------------------------------------------- | ---------------------
GnuPG Keyprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D
pgp00000.pgp
Description: PGP signature
_______________________________________________ newbies mailing list [EMAIL PROTECTED] http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
