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 ?

  • mbirth 🇬🇧@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    My home folders on any OS have a Development folder (which conveniently sits right next to Documents and Downloads) and in that folder, I’ve also got subfolders per programming language that have the respective projects in them.

    The other folder I usually have is SyncThing with whatever synced folders are relevant for that machine.

    • astronaut_sloth@mander.xyz
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Yep, I also have a directory for my programming projects on each of my machines, but mine is Programming. On my main desktop, I also have an ISOs folder to hold my OS ISOs for VMs and old CD-ROM game ISOs.

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago
    • ~/Prototypes for … my prototypes, typically either starting from an empty directory or cloning a repository and adapting it for my needs. I have this directory on nearly all my devices, desktop of course but also NAS, server, phone, standalone XR headset, etc.
    • ~/Apps in addition to ~/bin, typically binaries but all AppImages
  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year 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.

  • mko@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    For source code or any project - a folder Projects (on my personal setups) or Documents/Projects/PersonalRepo (more customer specific folders under the Projects sub-folder)

    • Anything under ~/Projects that isn’t just a throwaway will be a git repo.
    • Anything under ~/Documents/Project/*Repo will be a git repo.
  • Lettuce eat lettuce@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year 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)

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 year 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.

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year 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
  • Count Regal Inkwell@pawb.social
    link
    fedilink
    arrow-up
    0
    ·
    1 year 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)