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
Quest Software and PassGo Technologies Forge OEM Agreement to ... - Business Wire (pr iBot UNIX and Linux RSS News 0 10-15-2007 09:30 AM
Quest Software Again Named Microsoft Global ISV Partner of the Year - Business Wire ( iBot UNIX and Linux RSS News 0 07-13-2007 10:40 AM
$PWD shows absolute path vs path w/symbolic links kornshellmaven Shell Programming and Scripting 3 06-13-2007 01:15 PM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 12:47 PM
cc path problem - no acceptable path found kendokendokendo UNIX for Dummies Questions & Answers 2 09-12-2005 10:52 AM

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-02-2001
abdul abdul is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 10
a quest regarding the path?

Hi mates,
A newbe in UNIX world. how can i add a specific path to my default unix path. ie i want to add a directory let is say /abdul to the path and whenever i log in unix should recognize it. it is mostly importnant when i use the cc command to compile my c programs ...and i have to use ./cc ...

thanx
  #2 (permalink)  
Old 09-02-2001
rwb1959's Avatar
rwb1959 rwb1959 is offline
Registered User
  
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
depending on the shell you use, you can
edit your .profile, .bash_profile, .cshrc,
.bashrc, or .kshrc file(s) and modify you PATH
variable in "append" what ever you like to the
existing information.

I would recommend you get a book on the
particular shell you are using (sh, ksh, csh or bash). It will prove invaluable.

example entry in .profile:

# Append the "bin" directory in my home
# directory to my system default path
PATH=$PATH:$HOME/bin
export PATH
  #3 (permalink)  
Old 09-04-2001
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
just a shot in the dark. your not useing solaris are you? if so by default it does not come with a compiler. reguardless i would look into gcc. it is the GNU version of cc. also after you log in type

Code:
(hostname)#echo $PATH

this will display your default 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 11:30 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