The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
adding spaces for a variable value dnat Shell Programming and Scripting 2 02-26-2008 05:32 AM
Adding default search path for CPP boyanov UNIX for Dummies Questions & Answers 1 09-10-2007 02:46 AM
Adding PATH variable in the startup scripts rajanishshetty UNIX for Dummies Questions & Answers 5 03-02-2007 12:51 PM
adding 0 to a variable shivakundan Shell Programming and Scripting 3 02-14-2007 10:05 PM
adding contents of a variable to a command gammarays Shell Programming and Scripting 2 02-08-2005 01:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-19-2007
wir3d wir3d is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 2
adding PATH variable

Hello

i use bash and i added a path variable for 2 files /rscr and /uscr in /etc/profile

/rscr working fine but the other one shows command not found
and when i try to type whereis for scripts in /rscr it shows them but the other one shows nothing... thanks
  #2 (permalink)  
Old 09-19-2007
azbest azbest is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 4
$ echo $PATH

You must see your path in screen.

also check this

cat ~/.profile |grep PATH

PATH=/sbin:/bin:/usr/sbin; export PATH


PS: You must execute "export PATH"
  #3 (permalink)  
Old 09-19-2007
wir3d wir3d is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 2
echo $PATH


Code:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/uscr

cat ~/.profile |grep PATH


Code:
PATH=$PATH:/usr/uscr:/usr/rscr; export PATH

see on $PATH it doesn't show /usr/rscr but with cat ~/.profile |grep PATH .. its there! im confused
  #4 (permalink)  
Old 09-19-2007
azbest azbest is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 4
try this in your shell


Code:
PATH=$PATH:/usr/uscr:/usr/rscr; export PATH; echo $PATH

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0