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
On 6/24/2022 2:24 PM, David Wright wrote:
This strikes me as a nightmare waiting to happen.
There was probably a similar feeling when .deb and dpkg and apt rolled out.
I think you made this up. I'm sure there were some people who were
happy enough with Slackware when dpkg was evolving, but I ne
On Wed 22 Jun 2022 at 18:21:10 (-0400), Bijan Soleymani wrote:
> On 6/22/2022 5:22 PM, Charles Curley wrote:
> > On Wed, 22 Jun 2022 16:25:02 -0400 Bijan Soleymani wrote:
> >
> > > Anyways it would be nice to do:
> > >
> > > apt install http://domain/filename.deb
> > This strikes me as a nightma
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 6/24/2022 10:03 AM, Bijan Soleymani wrote:
To me anytime you need to use su or sudo to do something, you should
not think it is harmless, no matter how simple or easy.
Although all that being said, I remember a long time ago getting into a
situation with apt or dpkg (removing libc or ins
Hi Didier,
On 6/24/2022 4:36 AM, didier gaumet wrote:
Le jeudi 23 juin 2022 à 16:27 -0400, Bijan Soleymani a écrit :
rm wrongfile
how do I undelete?
better put deleted files in the "recycling box" and prompt users on
every deletion by default
rm -rf /
oops!
sigh...
Bijan
Hello,
Please o
On Fri, Jun 24, 2022 at 09:17:40AM -0400, Bijan Soleymani wrote:
> On 6/24/2022 4:48 AM, Jonathan Dowland wrote:
> > On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote:
> > > How do you handle dependencies where there is a version of the
> > > dependency on the server, and another versi
On 6/24/2022 4:01 AM, Darac Marjal wrote:
On 22/06/2022 18:04, Person the human wrote:
I just want to get everyone's opinion on this before I request it
from the developers or possibly try to add it myself.
Would it be nice if it was possible to pass a URL to 'apt install' so
that a package
On 6/24/2022 4:48 AM, Jonathan Dowland wrote:
On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote:
How do you handle dependencies where there is a version of the
dependency on the server, and another version on a repo in the user's
sources.list? Multiple nested dependencies?
You don
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
Le jeudi 23 juin 2022 à 16:27 -0400, Bijan Soleymani a écrit :
>
> rm wrongfile
>
> how do I undelete?
>
> better put deleted files in the "recycling box" and prompt users on
> every deletion by default
>
> rm -rf /
>
> oops!
>
> sigh...
>
> Bijan
Hello,
Please open a new thread when y
On Wed, Jun 22, 2022 at 03:22:30PM -0600, Charles Curley wrote:
How do you handle dependencies where there is a version of the
dependency on the server, and another version on a repo in the user's
sources.list? Multiple nested dependencies?
You don't: just like "apt install ./foo.deb", apt take
On 22/06/2022 18:04, Person the human wrote:
I just want to get everyone's opinion on this before I request it from
the developers or possibly try to add it myself.
Would it be nice if it was possible to pass a URL to 'apt install' so
that a package could be installed without first downloadin
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
On Thu, 23 Jun 2022 16:27:28 -0400
Bijan Soleymani wrote:
> better put deleted files in the "recycling box" and prompt users on
> every deletion by default
>
> rm -rf /
>
> oops!
Better yet, have proper backups.
https://charlescurley.com/blog/posts/2019/Nov/02/backups-on-linux/
--
Does any
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 "recycling box" and prompt users on ever
On Wed, 22 Jun 2022 14:34:41 -0230
Person the human wrote:
> Would it be nice if it was possible to pass a URL to 'apt install' so
> that a package could be installed without first downloading its .deb
> file? I think it's good because it can save time and prevent unneeded
> damage to SSDs. Even
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 "recycling box" and prompt users on
every deletion by default
rm -rf /
oops!
s
The easier something is to do, the more harmless people will think it is,
so you're right. Thanks.
On Wed, Jun 22, 2022 at 5:56 PM Dan Ritter wrote:
> Person the human wrote:
> > Having this feature won't help me personally since I'm not using an SSD
> and
> > I don't download packages from the
On Wed, Jun 22, 2022 at 06:21:10PM -0400, Bijan Soleymani wrote:
[...]
> > This strikes me as a nightmare waiting to happen.
>
> There was probably a similar feeling when .deb and dpkg and apt rolled out.
> Users are going to have dependency issues, etc. If libc breaks on upgrade
> then everyth
On 6/22/2022 5:22 PM, Charles Curley wrote:
On Wed, 22 Jun 2022 16:25:02 -0400
Bijan Soleymani wrote:
Anyways it would be nice to do:
apt install http://domain/filename.deb
too. Wonder if there's some optimal/convenient way to handle
dependencies if they're on the same server too.
How do yo
On Wed, 22 Jun 2022 16:25:02 -0400
Bijan Soleymani wrote:
> Anyways it would be nice to do:
>
> apt install http://domain/filename.deb
>
> too. Wonder if there's some optimal/convenient way to handle
> dependencies if they're on the same server too.
How do you handle dependencies where there
Person the human wrote:
> Having this feature won't help me personally since I'm not using an SSD and
> I don't download packages from the internet often. The reason I wanted this
> to be built into apt is so that websites that would normally link to a file
> and tell users to download it could in
On Wed, Jun 22, 2022 at 04:25:02PM -0400, Bijan Soleymani wrote:
> I think you can now do:
>
> apt install filename.deb
Close. It has to begin with / or ./ or ../ or else it won't be seen as
a filename.
apt install ./filename.deb
On 6/22/2022 1:04 PM, Person the human wrote:
I just want to get everyone's opinion on this before I request it from
the developers or possibly try to add it myself.
Would it be nice if it was possible to pass a URL to 'apt install' so
that a package could be installed without first downloadin
Having this feature won't help me personally since I'm not using an SSD and
I don't download packages from the internet often. The reason I wanted this
to be built into apt is so that websites that would normally link to a file
and tell users to download it could instead just give users a command t
On Wed, 22 Jun 2022 14:34:41 -0230
Person the human wrote:
> Would it be nice if it was possible to pass a URL to 'apt install' so
> that a package could be installed without first downloading its .deb
> file?
How do you install it without first pulling it in?
> I think it's good because it can
Person the human wrote:
> I just want to get everyone's opinion on this before I request it from the
> developers or possibly try to add it myself.
>
> Would it be nice if it was possible to pass a URL to 'apt install' so that
> a package could be installed without first downloading its .deb file
On Wed 22 Jun 2022 at 14:34:41 (-0230), Person the human wrote:
> I just want to get everyone's opinion on this before I request it from the
> developers or possibly try to add it myself.
>
> Would it be nice if it was possible to pass a URL to 'apt install' so that
> a package could be installed
I just want to get everyone's opinion on this before I request it from the
developers or possibly try to add it myself.
Would it be nice if it was possible to pass a URL to 'apt install' so that
a package could be installed without first downloading its .deb file? I
think it's good because it can
33 matches
Mail list logo