this post was submitted on 22 Jan 2025
658 points (98.8% liked)

linuxmemes

25308 readers
1854 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    The Unix Way, everybody!

    Also, first post!

    @linuxmemes

    top 50 comments
    sorted by: hot top controversial new old
    [–] slazer2au@lemmy.world 65 points 4 months ago (1 children)

    If file systems are databases, then does that mean storing a sqlite db on a HDD is database inception?

    [–] drq@mastodon.ml 46 points 4 months ago (5 children)
    [–] 30p87@feddit.org 8 points 4 months ago (1 children)
    [–] drq@mastodon.ml 13 points 4 months ago* (last edited 4 months ago) (1 children)

    @30p87 Okay, looks like we *finally* have *actual* groups in Fedi that are compatible across the board.

    I've been waiting for this for so long, I've almost given up all hope.

    @linuxmemes

    [–] FlowerTree@pawb.social 3 points 4 months ago

    Wait until you see Pixelfed and Mastodon's intercompatibility

    Nearly all the posts in my Pixelfed global feed literally comes from Mastodon instances as if I'm on Mastodon with Pixelfed ui

    load more comments (4 replies)
    [–] TheReturnOfPEB@reddthat.com 34 points 4 months ago* (last edited 4 months ago)

    everything is a file including a filesystem*

    Β 

    * including databases

    [–] TheBat@lemmy.world 33 points 4 months ago (2 children)

    For example, a directory full of spreadsheets.

    Somewhere, a sysadmin is pulling his hair out

    [–] whoisearth@lemmy.ca 10 points 4 months ago (1 children)

    Tbh still preferred to that asshat who rolls out an MS Access "app"

    load more comments (1 replies)
    [–] fnrir@lemmy.world 5 points 4 months ago

    or CSV files

    [–] kate@lemmy.uhhoh.com 33 points 4 months ago

    git repo is blockchain

    [–] gandalf_der_12te@discuss.tchncs.de 29 points 4 months ago (3 children)

    and anuses are vaginas, as long as you treat them as one.

    [–] coacoamelky@lemm.ee 18 points 4 months ago

    As a man of science I prefer to test every theory.

    [–] not_IO@lemmy.blahaj.zone 9 points 4 months ago (2 children)

    the anus isnt self lubricating :(

    [–] Saik0Shinigami@lemmy.saik0.com 13 points 4 months ago

    https://my.clevelandclinic.org/health/body/24784-anus-function

    Muscles, nerves and mucous membranes in your anus

    It is though...

    [–] superkret@feddit.org 7 points 4 months ago

    It can be if you're lactose intolerant.

    [–] mlg@lemmy.world 21 points 4 months ago

    Didn't someone actually try making SQL as a filesystem and it ended up being something like 50 times slower than ZFS after they applied a ton of optimizations?

    Not as a serious project, but more like a joke to see what would actually happen.

    [–] Irelephant@lemm.ee 21 points 4 months ago

    You're right! Ill just store all this data as static json files in a directory then

    [–] hperrin@lemmy.ca 15 points 4 months ago (1 children)

    They’re more like blob storage.

    Blob storage usually uses a FS back end so it’s more like blob storage is like a file system

    [–] renzev@lemmy.world 10 points 4 months ago (3 children)

    Just fucking putting data into json files in a folder is so much easier than databases. Sure, databases are faster and give you access to powerful SQL queries. But if you're just making something small and simple, you don't need those things. Save yourself the hassle and just use the filesystem.

    Or use minio/s3, which can either be the best or the worst of both worlds depending on your usecase.

    [–] twice_hatch@midwest.social 12 points 4 months ago (1 children)

    The trouble is, filesystems don't have ACID. The first time you have a power loss during a write, your data will get corrupted.

    load more comments (1 replies)
    [–] FooBarrington@lemmy.world 10 points 4 months ago (1 children)

    It also makes you re-implement a database, but worse.

    Use a JSON file if you just need to serialize/deserialize some data. Use SQLite or a DB server if you need more. Your own code will never match the quality of SQLite.

    [–] seliaste@lemmy.blahaj.zone 3 points 4 months ago (1 children)

    Sqlite is the best in most cases

    [–] Korhaka@sopuli.xyz 3 points 4 months ago

    Made a bash script using sqlite recently to automate processing some data. Best part is it terrifies everyone else at work and no one else wants to touch it because it's on Linux and none of them have used it before.

    load more comments (1 replies)
    [–] foxido@social.cutie.team 9 points 4 months ago
    [–] drosophila@lemmy.blahaj.zone 9 points 4 months ago

    That's less the Unix way and more the BeOS way.

    [–] addie@feddit.uk 8 points 4 months ago

    Filesystem-as-a-db is why MongoDB is webscale. You just turn it on and it scales right up.

    [–] Redacted@lemmy.world 6 points 4 months ago

    The list of reasons filesystems are not databases is a database.

    [–] azvasKvklenko@sh.itjust.works 6 points 4 months ago

    I love how pacman/libalpm database is just directories with tiny little files, and it’s faster in resolving dependencies than mostly anything else

    [–] RizzRustbolt@lemmy.world 6 points 4 months ago (1 children)

    Every Homestuck fan already knows this.

    [–] drq@mastodon.ml 3 points 4 months ago (1 children)
    [–] RizzRustbolt@lemmy.world 2 points 4 months ago (1 children)

    "I have a system". Items are sorted randomly on to the top of "piles". I can retrieve any item from any pile, but pulling from anywhere except from the top of the pile destroys it.

    load more comments (1 replies)
    [–] reddit_sux@lemmy.world 5 points 4 months ago

    And the worst FAT32

    [–] th3rdsergeevich@mastodon.ml 5 points 4 months ago (1 children)

    @drq Come on, that can't be your F I R S T post.
    @linuxmemes

    [–] drq@mastodon.ml 9 points 4 months ago

    @th3rdsergeevich It is my first op-post on lemmy, that's right.

    @linuxmemes

    [–] possiblylinux127@lemmy.zip 5 points 4 months ago (2 children)

    Honestly that's basically what CephFS is

    load more comments (2 replies)
    [–] nialv7@lemmy.world 4 points 4 months ago

    Behold! I present to you: Database as Filesystem

    [–] whotookkarl@lemmy.world 2 points 4 months ago

    And all code is data too, and all processes are data transformers

    [–] 4oreman@lemy.lol 2 points 4 months ago

    🀯😡

    load more comments
    view more: next β€Ί