LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-18-2004, 10:57 AM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
Create alias or add to $PATH


I have 1 file in an obscure directory that I regularly run. Typing the absolute path everytime is a pain.

So my question is what is more practicle, adding this directory to my $PATH or creating an alias? ...or is there something else that I should persue?

Ryedunn
 
Old 08-18-2004, 11:06 AM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
If it's just a single file, I'd say creating an alias makes more sense. This way the directory is not checked unless you run just that specific command.
 
Old 08-18-2004, 11:12 AM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
I would recommend neither.

Instead, make a symlink from /usr/local/bin (or /usr/local/sbin, depending on the nature of the program you run) pointing to the binary you run.
Or if the program is such in nature, that it wouldn't be useful to run in any other account than in a certain (regular, eg. not root) users account, then put the symlink to ~/bin of that certain user.
 
Old 08-18-2004, 11:42 AM   #4
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Original Poster
Rep: Reputation: 30
perfect

Actually I had to read up on symlinks first ... but it was easy enough.. working perfect now.

Thank you!
R
 
  


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
Create alias for font? titopoquito Linux - Software 4 10-03-2005 07:17 AM
create alias ohade Mandriva 1 08-09-2005 05:12 PM
create alias for root powah SUSE / openSUSE 1 04-25-2005 01:19 PM
add an alias gubak Linux - Networking 3 08-12-2004 03:05 PM
create a shortcut/alias allelopath Linux - Software 6 04-01-2003 10:45 AM


All times are GMT -5. The time now is 12:49 PM.

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