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 ?

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    I don’t, on most machines, which are servers of some sort. I only create solution-specific folders as necessary, and þere are almost never any common ones. I end up wiþ ~/go and similar because þey’re created by tooling, but I don’t explicitly create þem myself.

    For my PCs, I’ve been carrying forward my ${HOME} for over a decade. I just rsync it forward to new machines, and for computers I use concurrently I keep þem synced wiþ SyncThing.

  • Moondye@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    ~/nixos/ for my NixOS config ~/repos/ for git repos ~/audio/ for my sound library and recordings

  • termaxima@slrpnk.net
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    Code goes in the Developer folder

    (I got used to that name on macOS, where it is the “canonical” name for it, because it automatically gets a special icon)

  • Lettuce eat lettuce@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 hours ago

    ~/Repos (For all the github and other code repositories I work in)

    ~/Scripts (All my random Bash scripts, sometimes for testing out stuff)

    ~/Junk (Mostly used for testing programs or small project components that aren’t mature enough to have their own repo)

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    15 hours ago
    • /ram - tmpfs filesystem
    • ~/.local/bin - added to my path
    • ~/.local/software - any user-local program more complicated than a binary gets a directory here. Generally a binary would be symlinked to ~/.local/bin
    • ~/.local/venv - shared python venv to use for one liners and small scripts
    • ~/repo - local filesystem backed package repository for which the host system is configured to install from
    • ~/.local/repo - local filesystem backed package repository for which the host system is not configured to install from (used for mock, VMs, and external systems).
    • /overflow - Used to point to a large secondary hard drive (back when having a small ssd was the economical thing to do. Nowadays, it is just where my large directories go cause I can’t be bothered to get used to a more sane setup
  • KaChilde@sh.itjust.works
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    19 hours ago

    ~/Homework (porn)

    ~/aaaaaaa (porn)

    ~/Stuff (memes, with a porn subfolder)

    ~/misc (work docs, study docs, forms, some porn)

  • Count Regal Inkwell@pawb.social
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    17 hours ago

    ~/Brojetos (anything relating to making stuff, writing, drawing, video creation, programming, etc., professional or personal)

    ~/temp (a non-hidden temp folder with a script that wipes it when the PC shuts down or reboots, used for downloads and such to prevent the “downloads folder is an abomination” problem that plagues any computer after a while of usage)

    ~/AppsGames (appimages, applications compiled from source and not installed to system, personal use scripts, wineprefixes, non-steam games)

    aaaand ~/OtherAminals (for stuff I want to keep but have no idea where else to place)

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    18 hours ago

    ~/{nextcloud,git,pictures/screenshots,music,docs,videos}

    In terms of what I manually create. Dot directories normally get automatically created but I guess I’d create a ~/.config if it didn’t get created.

  • Ricaz@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    28
    arrow-down
    1
    ·
    1 day ago

    My homedir is an infernal hellhole of junk accumulated over the past 15 years and I wouldn’t have it any other way

    • communism@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      18 hours ago

      Mine used to be the same but the last OS reinstall I reset everything, moved my files onto an external drive, and only copied them over on a needs basis. I’d been keeping the same home dir since I was like 4 or however old I was when I started using a computer. So needless to say there was a lot there that made me cringe to see every time I tried to navigate my files.

    • Random Dent@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      Mine used to be like that, but now my home folder is rehabilitated by turning ~/Documents into a hellhole of accumulated junk instead.

    • TriangleSpecialist@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 day ago

      I’d love to keep it clean but too many devs think $HOME is up for grabs, as long as they prepend their directory names with a dot (they think I’ll never notice, but I notice, and I keep a list…)

    • Evil_Shrubbery@thelemmy.club
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      There are 15 year olds using Lemmy??

      /s (my documents folder is the same, but older … much a lot too many very older :|)

      • Random Dent@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        You can also just make a file called .hidden and paste the names in there and it’ll hide them, that way it doesn’t mess up any paths/symlinks etc. Or at least in KDE/Dolphin you can do that, I dunno about other setups.

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 day ago

    I just at ~/projects it contains a boat load of stuff including my Neovim and bash stuff.

    Guys, use GNU Stow + git for your configs shit’s good.