Fork me on GitHub

oh no. I just messed up with a rm -rf **.** command a rogue /. I realised and ctrl+C it pretty quick and most of what was displayed was "access is denied" but fuck


Heheh, yeah. zsh is quite handy in there. Not sure about *.*, but it will ask you to confirm if you use just *. Before I started using zsh, I once executed rm -rf Downloads/ * while in $HOME. Notice the accidental space in front of *. Fun times.

Alex Miller (Clojure team)17:09:04

I used to have a bash replacement for rm that would move files to the trash rather than delete


any tips on knowing if i've done any damage ? Do I just need to use the system and see whats broken?

Alex Miller (Clojure team)17:09:43

well I'm sure you can just restore from your backup RIGHT!?

👀 2

If you never fiddled with permissions and you weren't a superuser while executing rm, the system itself should be fine.

Ben Sless17:09:32

-i and moving to trash are good options

Ben Sless18:09:00

Sadly there's no "dry-run" option


I thought modern systems made you pass the --no-preserve-root flag to delete /

👍 1

> I used to have a bash replacement for rm that would move files to the trash rather than delete I do this with the trash brew package and alias rm=trash


Thanks - I'll have to pay closer attention to #missionary.


I run Ubuntu on my main computer at home. Setting it up was a bit annoying as I have an old graphics card. I had to fiddle with installing NVidia drivers. and until I got those Nvidia drivers installed it would keep hard locking the whole system. The only way to recover was to power it off. I want to update to the latest Ubuntu from my older version, does anyone know if I do if I will have the same graphics card issue with me racing to fix the graphics drivers before it freezes? Or will it maybe keep my current graphics card drivers and settings?

Ben Sless19:09:30

can I ask what model of card?

William Edmisten19:09:43

I've had success running Ubuntu 20 LTS with an nvidia card, but it's a relatively modern card


> with me racing to fix the graphics drivers before it freezes? Well, you should perhaps be doing that from the root shell, without loading any drivers. Or do you mean that even that shell was freezing?

Ben Sless19:09:18

Regarding my own experience, Pop with RTX980 works with zero issues


Its an Nviida 760gtx


I didnt know I could fiddle with graphics card stuff from a shell. I was trying to use the proprietary drivers UI


but often it would only stay up for 2 - 3 mins before freezing


sometimes it would start up, show the login screen and then freeze and i couldn't even log in


Don't use high-level UI to fix broken graphics drivers. You wouldn't drive on a flat tire all the way to a car service. You can do everything you need via shell, although the learning curve is a tad more steep than for the relevant UI.

Ben Sless19:09:51

From looking at nvidia's website, your model should be supported

Ben Sless19:09:59

where did you install the drivers from?


In Unity > Software and Updates > Additional Drivers


and allowed proprietary drivers


Maybe at this point I should look at just getting a new system, one that comes packaged with some linux so I know all the hardware is ok

William Edmisten19:09:52

That guide is for Ubuntu 20 but I think it should be similar in fairly recent earlier versions


The upgrade should update your kernel and nvidia driver as well. This kind of problem usually is caused by the nouveau driver, which you can disable with a property in grub, until you install the proprietary driver. Also, you can use the ubuntu-drivers cmd to auto install proprietary drivers


I used to run Debian, I had the same issue setting that up, it would hard freeze a lot till I fixed gfx card issues. Upgrading to the lates Debian would start hard locking again soon after boot and I never manged to get it stay up long enough to fix the drivers. Im worried upgrading Ubuntu will result in the same