LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-29-2006, 04:59 AM   #1
davidhilbert
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Rep: Reputation: 0
Have a laugh at my stupid question


Yes, I know how stupid this question makes me sound.

I don't know the value of my PATH environment variable. How do I find out what it is? I need to put a script "on my PATH" and I'm the only user in the world that doesn't know how. Is there a getenv command?
 
Old 04-29-2006, 05:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
your question is fine.. i'd say the title is much much worse.. please use useful titles, e.g. "how do i show my PATH variable" etc...

just open a terminal and type "echo $PATH" and hit enter.
 
Old 04-29-2006, 05:01 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
If you are using bash, zsh and other similar shells, do
Code:
echo $PATH
The script you need to run needs to be in a directory in your path. You can also add other directories to your path by editing /etc/profile or user specific files such as .bash_profile and .zprofile.
 
Old 04-29-2006, 05:05 AM   #4
davidhilbert
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you very much for your help.

Perhaps the reason I couldn't find this simple info was because people used silly titles for their post. I apologise.
 
Old 04-29-2006, 10:33 AM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Perhaps the reason I couldn't find this simple info was because people used silly titles for their post. I apologise.
I think he get's it.

regards,
...drkstr
 
  


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
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
God do I feel stupid, please read, laugh and help! jmpmjmpm Linux - General 12 02-22-2005 04:18 PM
stupid question jbclarkman Mandriva 2 01-15-2005 05:16 AM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
another not so stupid question. Thetargos Linux - Software 2 04-01-2003 01:35 PM


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