LinuxQuestions.org
Review your favorite Linux distribution.
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 03-27-2005, 02:44 PM   #1
Electric-Gerbil
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
Couple of questions from a newb


I've been running Linux for a couple of weeks now, playing with it on-and-off, and I've got a couple of questions.

The first regards accessing command-line programs. I've got BitTorrent installed (from the RPM on the BitTorrent website), however it's been installed in a rather obscure location, and the only way it seems to run is from the command line. Is there any way I can set Linux to run it from any directory with a single command? So, for example, if I just typed "bittorrent" into a command line in any directory, it would automatically run the BitTorrent client with any parameters I put after the "bittorrent" command.

The second question regards something called PATH. I was installing ActiveTCL a week or so ago, and at the end of the installation I was told I should update my PATH variable or somesuch. I have no idea what this is. Any assistance would be appreciated to help me understand this.

Cheers in advance.

-EG

(PS: Please bear in mind that I am an utter newb )
 
Old 03-27-2005, 03:06 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
These two questions are very closely related. PATH is an environment variable that specifies where your shell looks for programs to execute. You can see the contents of your PATH by typing "echo $PATH" at the command prompt. Note that different directories in your PATH are separated by colons.

You can update your PATH, for instance:

export PATH=$PATH:/directory/where/bittorrent/resides

and then your shell will find bittorrent automatically. You'll need to add this to your startup files (.bash_profile and .bashrc ) to save it between shell sessions.

Note: all this assumes you are using the Bash shell, which is the default. You can see what shell you are using with "echo $SHELL".
 
Old 03-27-2005, 11:43 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
you could also set an alias in your ~/.bashrc
alias super_double_cow_power_go='/total/path/from/hell/mysteryapp'

then whenever you want to run mysteryapp just type super_double_cow_power_go
 
  


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
Newb bigtime. Couple questions SuSE 10.0 boostaddict Linux - Newbie 6 11-29-2005 03:39 PM
couple of newb questions (grub and wireless) Britten Ubuntu 6 11-26-2005 02:21 PM
Couple newb questions hongman Linux - Newbie 3 02-27-2005 05:32 PM
couple newb questions cryptowicked Linux - Software 3 12-04-2004 12:23 AM
Couple Newb questions jeep99899 Linux - Newbie 2 11-09-2004 02:13 PM


All times are GMT -5. The time now is 06:23 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