Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.system Subject: shell init files (was: Core dumps) Date: Wed, 06 Jun 2012 18:30:08 +0100 Lines: 20 Message-ID: <87aa0gcpr3.fsf_-_@sapphire.mobileactivedefense.com> References: <8bb99d54-c1e4-4c96-9c48-d0cd3d6eeb50@6g2000vbv.googlegroups.com> <87lik8ebbd.fsf@sapphire.mobileactivedefense.com> <87y5o7hxl8.fsf@sapphire.mobileactivedefense.com> <87wr3lvote.fsf@sapphire.mobileactivedefense.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net cLlfcLBtVS6I0vfKDyuCoQmtE7J0UzykES4D5OfCcEWZ3LIBSBSPvYN3dDRiEHbpU= Cancel-Lock: sha1:ZGM1QHpTfrgY7HbLd+xOBBMFfQo= sha1:WCa3zFE8E6Dxzq5m78eAKhO7QP0= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Xref: csiph.com comp.os.linux.development.system:435 "Ersek, Laszlo" writes: > On Wed, 6 Jun 2012, Jorgen Grahn wrote: >> ssh user@host simulator args ... > > What I have to keep in mind for commands like this is to modify > ~/.bashrc, not ~/.bash_profile, on the remote end. Considering way this is meant to be used, that's exactly the wrong choice. The profile-file is supposed to be used for per-session settings which need to be configured once and will then be inherited by all future processes created from this shell and 'resource limits' are parameters with this property. The purpose of .bashrc, OTOH, is to configure an interactive shell environment according to the preferences of some user, eg, to define aliases or special prompts. In practice, this distinction is somewhat hypothetical because this is one area where distribution packagers are very likely to express their votum separatum on 'how this should work according to my opinion' and in any case, this is (AFAIK) an ancient performance optimization of little real-world relevance today.