From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 06:53:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F49716A400 for ; Fri, 26 Jan 2007 06:53:16 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id 4E2F713C4A3 for ; Fri, 26 Jan 2007 06:53:16 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so703180wxc for ; Thu, 25 Jan 2007 22:53:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=osQWQKhrwt8MabJ0/2WdR1xNLstzmf3Vr0hiAB0hsmvCvlw9fWnBrLb2JMA7fAz85x9vU91mbGaFhCzcX0IkJPLtG0iH51LGHOrMYv4736Fp/mEzt/54ssl22CYxeO1RYHjEZ8j3Qvup4ewVlnNLOfwgsSXFT+RsI5URbFOdw18= Received: by 10.70.57.2 with SMTP id f2mr5504520wxa.1169794395772; Thu, 25 Jan 2007 22:53:15 -0800 (PST) Received: by 10.70.52.12 with HTTP; Thu, 25 Jan 2007 22:53:15 -0800 (PST) Message-ID: Date: Fri, 26 Jan 2007 01:53:15 -0500 From: "Dak Ghatikachalam" To: "youshi10@u.washington.edu" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: [OT] Does "~" always point to $HOME? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 06:53:17 -0000 On 1/26/07, Dak Ghatikachalam 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 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.