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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo