Find the answer to your Linux question:
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 ...
  1. #1
    Just 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!

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    The alias command is probably what you're looking for:
    Code:
    alias tcmplex=tcmplex-panteltje
    Also, do you know how to use tab completion? That really speeds up shell usage.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    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!

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Location
    Czech Republic
    Posts
    35
    Another idea would be to make a symbolic link:
    ln -s tcmplex-panteltje tcmplex

  5. #5
    Linux User PsypherPunk's Avatar
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    257
    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

  6. #6
    Just Joined!
    Join Date
    Jun 2006
    Posts
    25
    Ok I'll try that, thank you all for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •