From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 18:34:38 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDBF116A419 for ; Sun, 2 Sep 2007 18:34:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id C2FEA13C4A3 for ; Sun, 2 Sep 2007 18:34:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l82II4H7058467; Sun, 2 Sep 2007 11:18:04 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <46DAFE5C.6070806@freebsd.org> Date: Sun, 02 Sep 2007 11:18:04 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yar Tikhiy References: <20070901073440.GL85633@comp.chem.msu.su> In-Reply-To: <20070901073440.GL85633@comp.chem.msu.su> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 18:34:38 -0000 Yar Tikhiy wrote: > Hi all, > > I've had to use /rescue recently and felt lack of a few basic tools > in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, > e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), > tail(1), and even tee(1) can be emulated if one has sed(1), but the > tools are so tiny and convenient that it's a pity not to have them > all handy during hard times. > > In addition, there are chflags and chmod in /rescue, but there's > no chown in it, so the toolset is a bit incomplete. Oh, my. chown was definitely an oversight. That should have been in there. My opinions: * head, tail, and tee are no-brainers; just do it. * sed would be a nice addition. (I atttempted to fit 'vi' in there, but curses is rather finicky; 'sed' would be more useful.) * I personally would not add pgrep/pkill because I never use them. Of course, it's hard to get worked up about 45k, so feel free to ignore the above. Cheers, Tim Kientzle