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 ...
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
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