On Mon, Dec 29, 2003 at 02:32:09PM +0000 or thereabouts, pinto wrote:
On Monday 29 December 2003 13:23, Gary wrote:
If you use that command often, why not just make it an alias?
Dear Gary,
thanks ~ how would one do this ? . . . by writing a tiny script ?
By adding an alias to your .bashrc file... (root) ... so in my v8.2 #root> locate .bashrc /etc/bash.bashrc go in there, edit the .bashrc file, and add an alias at the bottom for example.. to use sd as an alias for shutdown -h now alias sd='shutdown -h now' then anytime while in a root shell, you type sd, (or whatever you want to use), it will execute your full command. <g> You can add any amount of aliases to your home .bashrc file too. Saves a lot of time for frequently typed entries.. OR.. You can make a .alias file in your home dir, and probably the root dir, listing all your personal aliases. -- Gary