Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-27 Thread Jonathan Dowland
On Fri, Jun 24, 2022 at 07:02:35AM +, Andrew M.A. Cater wrote: Train your brain and your fingers to move the rf to the end of the command so that you _have_ to check what filename you are typing as you type it. I set a shell alias alias rm='echo use trash instead' This was enough to t

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-25 Thread Joel Roth
On Sat, Jun 25, 2022 at 09:45:58AM -0400, Greg Wooledge wrote: > On Fri, Jun 24, 2022 at 07:42:25PM -1000, Joel Roth wrote: > > I list the files first: > > > > ls some-pattern > > > > then add a pipe to rm: > > > > ls some-pattern | rm > > > > or > > > > ls some-pattern | rm -rf > > Those co

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-25 Thread Greg Wooledge
On Fri, Jun 24, 2022 at 07:42:25PM -1000, Joel Roth wrote: > I list the files first: > > ls some-pattern > > then add a pipe to rm: > > ls some-pattern | rm > > or > > ls some-pattern | rm -rf Those commands do not work. rm does not read a list of files from stdin. Even if you were to add

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread Joel Roth
On Fri, Jun 24, 2022 at 07:02:35AM +, Andrew M.A. Cater wrote: > There are a couple of useful habits to get into when removing things: > > There's an > > rm -i > Use the pwd command to check where you are in the > filesystem. (It may be short for "print working > directory"). > If you

Re: Suggestions for rm

2022-06-24 Thread David Wright
This is the 3rd attempt to send this message, as it keeps stalling at Connecting to smtp.cox.net... On Fri 24 Jun 2022 at 09:46:38 (-0400), Greg Wooledge wrote: > As you have observed here, the worst side effect of "su -" is that it > changes your directory. Well, that's a relief. I've been usin

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread David Wright
On Fri 24 Jun 2022 at 08:48:05 (-0400), rhkra...@gmail.com wrote: > On Friday, June 24, 2022 03:02:35 AM Andrew M.A. Cater wrote: > > The last suggestion, and it's the simplest: > > > > rm [filename] -rf > > > > Train your brain and your fingers to move the rf to the end of the command > > so th

Re: Suggestions for rm

2022-06-24 Thread Greg Wooledge
On Fri, Jun 24, 2022 at 02:35:19PM +0100, mick crane wrote: > On 2022-06-24 08:37, Thomas Schmitt wrote: > > After "rm -rf /" one probably has to re-install the system first, > > Once upon a time one of the distributions put you in / > after "su" > where typing "rm -rf ./*" is not the best thing t

Re: Suggestions for rm

2022-06-24 Thread mick crane
On 2022-06-24 08:37, Thomas Schmitt wrote: > After "rm -rf /" one probably has to re-install the system first, Once upon a time one of the distributions put you in / after "su" where typing "rm -rf ./*" is not the best thing to do. "N" You only do it once but I like the adjusted su beha

Re: Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread rhkramer
On Friday, June 24, 2022 03:02:35 AM Andrew M.A. Cater wrote: > The last suggestion, and it's the simplest: > > rm [filename] -rf > > Train your brain and your fingers to move the rf to the end of the command > so that you _have_ to check what filename you are typing as you type it. > > If you

Re: Suggestions for rm

2022-06-24 Thread Thomas Schmitt
Hi, Andrew M.A. Cater: > There's an > rm -i > switch to the rm command. This makes the removal interactive - you get > an "Are you sure [Y/N]" warning for each file. This is useful for a single > critical file, less useful when you're removing a hundred logfiles. After alias rm='rm -i' it is

Suggestions for rm [WAS: Re: Feature request: install package by passing URL to apt-get]

2022-06-24 Thread Andrew M.A. Cater
On Thu, Jun 23, 2022 at 04:27:28PM -0400, Bijan Soleymani wrote: > On 6/23/2022 12:03 PM, Person the human wrote: > > The easier something is to do, the more harmless people will think it > > is, so you're right. Thanks. > > rm wrongfile > > how do I undelete? > > better put deleted files in the