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 03-30-2004, 07:02 PM   #1
dmiller23462
LQ Newbie
 
Registered: Feb 2004
Location: Jacksonville, FL
Distribution: Red Hat 9.0
Posts: 7

Rep: Reputation: 0
"PATH" command


Hey guys....

Here's my sitch-ee-ay-shun...

Installed mplayer....No probs (well sound doesn't seem to work but I'm still working on that, tried the "oss" audio command but doesn't work yet)

I want to be able to type "mplayer" from anywhere I am in Red Hat, any directory....I know that it's the "path" command but I don't know exactly how to use it....I tried "man path" and "path --help" but to no avail.....

Hopefully you understand what I'm getting at....I don't want to go to the mplayer directory and type "./mplayer".....I want to be in my directory containing all my MOV's, AVI's, all of my media and then type mplayer....

Any help is appreciated, I'm enjoying Linux but learning bit-by-bit...
 
Old 03-30-2004, 07:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Have a read in
man bash

Search the man-page for
PATH
.bashrc
.bash_profile

To search in the man-page use /
man man for details ;)


Cheers,
Tink
 
Old 03-30-2004, 07:24 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"I know that it's the "path" command"

Actually it is the PATH variable. You can display your current PATH with:
echo $PATH
You can add /home/user/kaddidle to your PATH with:
PATH=$PATH:/home/user/kaddidle


If you want to make the addition permanent then put:
PATH=$PATH:/home/user/kaddidle
export PATH
as the last two lines in /home/user/.bashrc.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 07:11 AM
Cedega from Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Software 0 03-30-2005 12:24 PM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 03:48 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 04:28 PM


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