Results 1 to 6 of 6
Is it possible to change how a program is accessed from the command line?
For example: I have a program called tcmplex-panteltje but typing all of that into the command ...
- 07-17-2006 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 25
Changing name of linux command?
Is it possible to change how a program is accessed from the command line?
For example: I have a program called tcmplex-panteltje but typing all of that into the command line every time i want to use it is tedious, so is there any way to change it so that I can type simply
tcmplex ...
instead of
tcmplex-panteltje ... ?
Thanks for any help!
- 07-17-2006 #2
The alias command is probably what you're looking for:
Also, do you know how to use tab completion? That really speeds up shell usage.Code:alias tcmplex=tcmplex-panteltje
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794
- 07-18-2006 #3
Ooh, good answer! And you can add that to your .bashrc so you don't have to set the alias every time you log in, too!
Stand up and be counted as a Linux user!
- 07-18-2006 #4Just Joined!
- Join Date
- Jul 2006
- Location
- Czech Republic
- Posts
- 35
Another idea would be to make a symbolic link:
ln -s tcmplex-panteltje tcmplex
- 07-18-2006 #5
Or use tab-completion? There can't really be that many programs that begin 'tcm', can there?
Registered Linux User #379728
SuSE 10.3 :: Athlon XP 3000+ :: AsRock K7VT4A Pro :: Nvidia Geforce 6600GT :: C-Media 8738
www.psypherpunk.org.uk
- 07-18-2006 #6Just Joined!
- Join Date
- Jun 2006
- Posts
- 25
Ok I'll try that, thank you all for your help


Reply With Quote
