Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-27-2005, 02:44 PM   #1
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.


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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 AM.

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