LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2011, 07:20 AM   #1
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Rep: Reputation: 16
Question How to Set up an "alias" Command for IDL?


Hello Everybody,

I have installed IDL 7.1 on my Ubuntu 9.10. And now the
instruction says that I should set up an "alias" for it.
I do not know what to write in my "bashrc" as an alias for IDL.
These are the place of the executable command of IDL:

/IDL/idl-7.1/bin/idl
AND
/IDL/idl-7.1/bin/idlde

Note that "idl" and "idlde" are the executable files which run
the program by typing them in Terminal.

I would be very grateful if anyone could help me in how to write
an "alias" for my IDL.

With best regards,
Hassan
 
Old 01-25-2011, 07:30 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
alias idl="/IDL/idl-7.1/bin/idl"

You might also want to post the relevant part of the documentation (or post a link to it), so we know exactly what the alias is for. I know that IDL also uses various environment variables, but I'm not sure which of these are required..

You could also consider making a symlink to the executable in one of the directories in your path (e.g. /usr/bin).

Last edited by Nylex; 01-25-2011 at 07:34 AM.
 
Old 01-25-2011, 07:35 AM   #3
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Hi Nylex,

Thanks for replying to my post.

Would you please tell me what this means:

""You could also consider making a symlink to the executable in one of the directories in your path (e.g. /usr/bin).""
And what is alias for?

Thanks.

Last edited by msbstar; 01-25-2011 at 07:37 AM.
 
Old 01-29-2011, 03:40 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Sorry for the delay in replying to this.

Symbolic links are files that point to other files. They're a bit like shortcuts, I guess. The actual executable (for IDL or whatever other program) can live in a directory (say, /opt/IDL/bin for the sake of argument) that may or may not be in your path and you can have a symlink for it in one of the directories that is in your path (e.g. /usr/local/bin), so you can run it without having to give the full path.

Aliases are used to give another name to a command, possibly to allow you to run a certain command with options just by typing your name. For example, I have the alias "ll" for "ls -l" (long listing format for ls).

Hope that helps.
 
1 members found this post helpful.
Old 01-30-2011, 01:04 AM   #5
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
Hi, Nylex,

Thanks for your helpful comments!

Best regards,
Hassan
 
Old 02-05-2011, 11:48 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No problem. Is IDL working now? Out of curiosity, what are you using it for?
 
Old 02-06-2011, 11:34 AM   #7
msbstar
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.4
Posts: 122

Original Poster
Rep: Reputation: 16
HI,

I am using it to reduce some spectroscopic data taken by HIRES/Keck, UVES/VLT telescope.
 
Old 02-12-2011, 10:41 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Oh cool, astro stuff. I'm a solar person myself .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem "$value=`mpstat 1 1 | grep "Average"`;" Alias pipe return nothing adamlucansky Linux - General 8 09-25-2009 08:26 AM
how to set path for "ifconfig" command permanentaly gitecravirs Linux - Newbie 7 07-02-2009 05:39 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
XTerm set font to "large" from command line introuble Linux - General 3 06-26-2006 05:11 AM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 03:07 AM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration