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 ?

  • Björn@swg-empire.de
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    I usually make ~/Packages for various binary packages that I can’t add as repos for whatever reason. And ~/Packages/src for stuff I compile myself.

    And ~/Games for games.

  • mko@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours 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.
  • InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    4 hours 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.

  • Ricaz@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 hours ago

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

    • TriangleSpecialist@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 hours 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…)

        • TriangleSpecialist@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          4 hours ago

          Breaking pots. Don’t mind me.

          EDIT: holdup, who are you calling a sysadmin? I administer my system, sure, but that’s about as far as I’m willing to go, thank you.

  • treep@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    4 hours ago

    ~/diy for my collection of knitting, crochet and sewing patterns and other assorted diy stuff

    ~/work duh.

    ~/tools for my collection of more or less useful small scripts

    ~/sync for my syncthing folders

    ~/data symlink to my data partition (most of the others are also symlinks to their location on data)

    I don’t really have a convention for programming projects yet. They used to land inside of ~/diy or in ~/tools or just random folders on data. I’ve got a ~/code folder now, but its contents are a mess.

    • VoxAliorum@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      Always backup your tools folder… In the past I only created backups for my “real” code folder and I was quite upset when I lost my small scripts in the last drive death.

  • hexagonwin@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    3 hours ago

    i have a ‘src’ directory. tho my home directory is extremely messy, ls | wc -l gives me 170 now…

  • MyNameIsRichard@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 hours ago

    ~/Projects - for my coding projects

    ~/Qt - which holds the Qt framework

    ~/Torrents - For torrents that I share

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    4 hours 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
  • Infrapink@thebrainbin.org
    link
    fedilink
    arrow-up
    3
    ·
    6 hours ago

    I rsync my home folder across installs. These are my standard extra folders.

    ~/Books, with subfolders by topic.

    ~/Comics, with subfolders by publisher, then by title, possibly with an intermediate folder for author or franchise.

    ~/Programming, with subfolders by language, then project.

  • IsoKiero@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    6
    ·
    8 hours ago

    ~/autoclean and a cron job to delete everything older than 7+ days from there. I can just download whatever, throw it in a special folder and it’s gone after few days. Keeps my ~/Downloads a bit more clean, easy to store temp txt files to keep track of what I currently have on hand and so on.

    • vandsjov@feddit.dk
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      I remove files and folders older than 30 days in my Downloads folder. But my work does make me download things that I often only need for less than a day. If I need to keep something, then it goes into whatever folder or online service where it should be. It is deleted to my trash bin and that has another 30 days before being permanently deleted. I haven’t had to pick anything out of the trash just yet.

  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 hours 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.