From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,1fcb2333482dcee6 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!syros.belnet.be!ikaria.belnet.be!news.belnet.be!snic.vub.ac.be!not-for-mail From: Wim Cossement Newsgroups: comp.unix.tru64 Subject: Re: some queris on .profile file Date: Thu, 15 Jun 2006 14:37:52 +0200 Organization: VUB/ULB Computing Centre Message-ID: References: <1150366558.414200.141250@p79g2000cwp.googlegroups.com> NNTP-Posting-Host: ultrpc57.vub.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: snic.vub.ac.be 1150375081 9918 134.184.84.107 (15 Jun 2006 12:38:01 GMT) X-Complaints-To: usenet@snic.vub.ac.be NNTP-Posting-Date: 15 Jun 2006 12:38:01 GMT User-Agent: Thunderbird 1.5.0.2 (X11/20060501) In-Reply-To: <1150366558.414200.141250@p79g2000cwp.googlegroups.com> Xref: g2news2.google.com comp.unix.tru64:422 mehaboob@gmail.com wrote: > Hi, > > I have created a new user on .profile file and was modifying the > .profile file.but I do find some of the things while I login which > confuses me. > > Here is my .profile > ------------------------------------------------------------------------------------------------------ > EDITOR=vi > export EDITOR > PATH=$HOME/bin:/usr/sbin:/usr/atria/bin:/usr/opt/temip/bin:${PATH:-/usr/bin:.} > export PATH > > /usr/bin/ksh > # My customisations > TERM=vt100 > HISTFILE=~/.history > HISTSIZE=300 > #set -o emacs > alias ct='cleartool' > alias __A="^P" > alias __B="^N" > alias __C="^F" > alias __D="^B" > alias __H="^H" > ------------------------------------------------------------------------------------------------------ > > 1)whats the use of {PATH:-/usr/bin:.} > I mean "-/usr/bin"............? No idea, normally this should not be there, just ommit it. > 2)/usr/bin/ksh > Are we changing the shell here? > whats the need to change the shell? Some people prefer another shell, I like bash the most... Different shells have slightly different syntaxes and functionality. > 3)How do i determine which shell I am working on? > 4)How do I change to some other shell? If you type the set command you shoud get a list of all the variables that are currently set. Look for the one called SHELL Normally programs look for that one, and this should not changed when you ware for example in bash and run /usr/bin/ksh. Your default shell is set in /etc/passwd where you can change it (or on your NIS or LDAP server if you use that for authentication) More info here: http://www.codecoffee.com/tipsforlinux/articles/030.html > 5)And the above aliases doesnt get set while added in the > profile...why? Don't know, they look like escape characters to me, I don't realy think they are necessary. > 6) #set -o emacs > Do we need this emacs setting? If a line starts with the #, it's comment and thus ignored. > Thanks in advance > Mehaboob > HTH, Wimmy -- Being owned by someone used to be called slavery. Now it's called commitment.