From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5ce8f07a6a06dc57 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-12-05 23:03:21 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!udel!gatech!bloom-beacon.mit.edu!crl.dec.com!crl.dec.com!lead.zk3.dec.com!mets86.mse.tay.dec.com!funlwb.stl.dec.com!usenet From: Peter.Mayne@cao.mts.dec.com Newsgroups: comp.unix.osf.osf1 Subject: Re: Updating .profile en masse Date: 6 Dec 1994 06:12:54 GMT Organization: Digital Equipment Corporation (Australia) Message-ID: <3c0vd6$95o@funlwb.stl.dec.com> References: <3bvrlg$ruq@mustang.smcvt.edu> NNTP-Posting-Host: chmeee.cao.dec.com X-Newsreader: News for Windows NT X1.0-39 In article <3bvrlg$ruq@mustang.smcvt.edu>, goodwin@smcvax.smcvt.edu (Dave Goodwin) wrote: > I'm showing my newbie status here, but we've not been on UNIX of any type > for very long. I need to add a line to the .profile of all our users and > am wondering if there's a quick way to do so? Thanks for the help... > > Dave Use /etc/profile instead? From man sh (and similar in man ksh): When you log in, the shell is called to read your commands. Before it does that, however, it checks to see if a file named /etc/profile exists on the system, and if it does, it reads commands from it (this file sets variables needed by all users). After this, the shell looks for a file named .pro- file in your login directory. If it finds one, it executes commands from it. Finally, the shell is ready to read commands from your standard input. PJDM -- Peter Mayne | My statements, not Digital's. Digital Equipment Corporation | Canberra, ACT, Australia | "AXP!": Bill the Cat