I realized I always make a source folder under home and then subfolders named after programming languages to organize projects but then I realized I somehow had my own convention for how to store my source code and I have no idea where I got it from

Then I thought. what about other Linux users ?

What sorts of conventions do you have that pertains to folder structure in Linux ?

  • phaedrus@piefed.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I do a similar thing for code stuffs, generally always make a ~/Git and ~/Godot so I always have a spot for things.

    I also delete most of the auto-created ones if I’m using a DE that does that, because I have my own organization going on with various external/network drives. Only one I have always kept is ~/Downloads.

      • phaedrus@piefed.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        I’m not sure exactly what you’re asking about. Do you mean the directory names?

        In unix, ~ expands to the user’s home directory path and / just separates each level in the path.

        • TrickDacy@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          Very weird. For some reason Boost displays those like the strings I wrote. Looking at this in the web client now, I see ~. Which btw I’m familiar with :) Thanks for the response!

          • phaedrus@piefed.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            3 months ago

            Ohhh, very odd. I’ve been noticing a lot of inconsistencies between Lemmy and PieFed like this, and now an app is something else entirely. Seems the fediverse is not unified on markdown support!

            Apologies if I came off as condescending, not my intention.

  • PenguinCoder@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Conventions I have are:

    • Downloads folder is ephemeral, don’t store/keep things in there I might want
    • ~/scripts - personal scripts and one offs
    • ~/Documents/projects/[subdir] - any tech project I may be working on, gets homed here
    • /tmp - always mount it noexec

    I also start off allocating ~ 50GB to / (root) volumegroup. Wine and proton have been taking up nearly the full space though, may need to expand it on my desktop soon.

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 months ago

    I usually create ~/git/{github,gitlab,codeberg,AUR,etc} where I clone the git stuff I need.

    The rest is usually handled by my nextcloud that creates the ~/Nextcloud folder.

  • TropicalDingdong@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I just live out of my downloads folder until its time to back up the important stuff to the server and reinstall/ distrohop.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Hardware folder (synced via sync thing). All hardware PDFs, notes images etc get subfolders by manufacturer. It is helpful for keeping track of use manuals, firmware or config settings for each piece of hardware.

    • hushable@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      I have a ~/Sync folder with a symlink to all my Syncthing shares, which I have quite a lot of. Helps me find them quickly and reminds me that everything in there us pulled or pushed somewhere else.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        If you want it that way, but then I’d have a mix of synced folder and regular folders inside Documents.

        I like to keep if completely separate, for backing up user documents via dejadup differently than the synced stuff.

  • lilith267@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Defaults are good for me but I like mounting my secondary drive to ~/Storage with subfolders media, projects, games

  • InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Projects for all kinds of projects

    aur_builds for the package I use from the AUR. No hand holding here, I build and install my AUR packages artisanally.

  • golden_zealot@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    Under ~ I usually make ~/Application for flatpaks/appimages etc, ~/Script for any kind of script I write in bash, python, or whatever else, ~/Audio for audio/music production stuff, and ~/Games for emulators and such. ~/Documents is reserved for actual documents containing text data usually.

  • Pika@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I always make a ~/.local/{bin,opt,share} if the distro lacks it. and a ~/bot that I use for my development stuff

  • beerclue@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I have ~/work/code/project-name-1, ~/work/code/project-name-2 or ~/priv/code/project-name-3, but not by language… I only separate work and private repositories.