Date: Fri, 26 Jan 2007 01:51:29 -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: <ba29b9b40701252251p1e6df8f1xcded017655acbcb2@mail.gmail.com> In-Reply-To: <Pine.LNX.4.43.0701251138500.18233@hymn07.u.washington.edu> References: <Pine.LNX.4.43.0701251138500.18233@hymn07.u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba29b9b40701252251p1e6df8f1xcded017655acbcb2>