Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2007 01:53:15 -0500
From:      "Dak Ghatikachalam" <dghatikachalam@gmail.com>
To:        "youshi10@u.washington.edu" <youshi10@u.washington.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [OT] Does "~" always point to $HOME?
Message-ID:  <ba29b9b40701252253h5c5d6240ia2447f698fdf3a36@mail.gmail.com>
In-Reply-To: <ba29b9b40701252251p1e6df8f1xcded017655acbcb2@mail.gmail.com>
References:  <Pine.LNX.4.43.0701251138500.18233@hymn07.u.washington.edu> <ba29b9b40701252251p1e6df8f1xcded017655acbcb2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/26/07, Dak Ghatikachalam <dghatikachalam@gmail.com> wrote:
>
> I write shells script extensively , I have noticed
>
> ~      -> gets a subsitution for $HOME
> ~userid   - >gets you the $HOME for that user
>
> meaning if  you have  have logged in as root and  if you want to run some
> script on oracle home even though you logged in as root  you can simplly
>
> ~oracle/runme.sh  -- > will run the runme.sh in Oracle home directory
>
> Regards
> Dak
>
> On 1/25/07, youshi10@u.washington.edu <youshi10@u.washington.edu> wrote:
> >
> > Hello again,
> >      I'm revising some documentation that has examples of running Unix
> > commands and I want to make sure that my steps are correct, such that I can
> > substitute the tilde character ('~') for $HOME. The only issue I can see
> > with this is an improper configuration with sudo (ran into some problems
> > with $HOME in the past using sudo on Gentoo), but I'm pretty sure that
> > sudo's setup on the machine cluster properly.
> > TIA,
> > -Garrett
> >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > freebsd-questions-unsubscribe@freebsd.org"
>
>

Oops sorry for top posting , I sent that mail  accidentally  at the rush of
the blood.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba29b9b40701252253h5c5d6240ia2447f698fdf3a36>