• 0 Posts
  • 9 Comments
Joined 3 months ago
cake
Cake day: August 15th, 2024

help-circle


  • pixelscript@lemm.eetolinuxmemes@lemmy.worldAbout that...
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    2 months ago

    I drive Linux for a similar reason to why some people prefer driving manual transmission cars to automatics.

    Automatic transmission cars are ideal for a certain kind of driver that has no interest in how the machine actually works, they just want the machine to do its job as smoothly as possible without them having to think about it. Not bothering with the details is the whole point.

    For those of us who do have an interest in knowing how the vehicle works, automatics become kind of suffocating. They’re designed to only ever behave in certain specific ways. If there’s a weird niche thing that we know is possible for the machine to do with manual control, but the automatic system doesn’t support, you’re just SOL. You can’t. This starts coming up in all sorts of annoying little ways, increasing in frequency as your knowledge increases. Death of a thousand cuts. You start feeling like you’re not really driving this car, you’re being taken for a ride.

    Windows is like the automatic. It is a black box designed to allow people who don’t care how the computer works to use the computer. To prevent morons from breaking the internal components, they put up barriers around everything and tell you to keep out.

    Linux is like the manual. Yes, it does demand more finesse and active knowledge about how the computer works to drive properly. But you’re in maximum control of it. If you want to pop the hood and tinker with every facet of its innards for whatever reason, it does not attempt to stop you. It’s all open, laid bare for you to do whatever you want with it.

    Linux has a lot of options available to make it more automatic like Windows, if you want it. The difference is that the automatic-ness is completely optional in Linux. Imagine a car that can be automatic most of the time when you don’t care, but can become manual at the drop of a hat when you need it. Linux can be that if you want it to be. Windows can’t.





  • The other day I learned that you can just grep an unmounted filesystem device. It will read the entire disk sequentially like it’s one huuuuge file. And it will reveal everything on that disk… whether a file inode points to it or not.

    Used it to recover data from a file I accidentally clobbered with an errant mv command. It’s not reliable, but when you delete a file, it’s usually not truly gone yet… With a little luck, as long as you know a unique snippet that was in it, you can find it again before the space gets something else written there. Don’t even need special recovery tools to do it, just use dd in a for loop to read the disc in chunks that fit in RAM, and grep -a for your data.