Terminal Window

Dexter Filmore Dexter.Filmore at gmx.de
Fri Jan 25 18:39:43 UTC 2008


On Monday 21 January 2008 18:56:47 Wes Hegge wrote:
> Several way I can think to do this.
>
> First is history.  Linux keeps a history of your commands.  You can do
> 'history | grep <command>' this will give you a numbered list of previous
> commands.  You then can do '!<line #>' to execute that command again.
>
> The other way is to use aliases.  This you would make in the .bashrc or
> whatever shell system you are using configuration's file is called. Here is
> an example: alias rm='rm -i'

This would go into ~/.bash_aliases in Kubuntu and is parsed on login. Good 
idea not to put it in .bashrc but call it from there, survives system 
updates.
One should remember that new aliases won't tak effect until it is a *login* 
shell, so new tabs in konsole are not affected until you manually 
source .bash_aliases.

Dex

P.S.: there seems to be a growing interest in command line hacking, is there 
a "kubuntu-bash" list or so...?


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------

http://www.vorratsdatenspeicherung.de




More information about the kubuntu-users mailing list