Date: Wed, 3 Oct 2007 19:23:44 -0700 From: "David O'Brien" <obrien@freebsd.org> To: Yar Tikhiy <yar@comp.chem.msu.su>, freebsd-hackers@freebsd.org Subject: Re: Useful tools missing from /rescue Message-ID: <20071004022344.GA60878@dragon.NUXI.org> In-Reply-To: <200709261028.43378.jhb@freebsd.org> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903120353.GH30502@comp.chem.msu.su> <200709261028.43378.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Yar Tikhiy wrote: > > > >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. I also don't see the need for pgrep - I think needing that says your system is running multiuser pretty well. Also head and tail - why not just add 'more' as that would give more functionality if you're trying to read a file in /etc to fix something. > > > >In addition, there are chflags and chmod in /rescue, but there's > > > >no chown in it, so the toolset is a bit incomplete. I don't see the purpose of chown - if you have to fall back to /rescue you're user 'root' - and you're trying to fix enough so you can use standard /*lib & /*bin chflags is needed so you can overwrite a file and chmod is needed so you can "chmod +x" something - those needs are clear. Please don't pestimize the build - unless there is a clear benefit. -- -- David (obrien@FreeBSD.org) Q: Because it reverses the logical flow of conversation. A: Why is top-posting (putting a reply at the top of the message) frowned upon? Let's not play "Jeopardy-style quoting"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071004022344.GA60878>