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 ?

  • @utopiah@lemmy.ml
    link
    fedilink
    13 minutes 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
    link
    fedilink
    32 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.

  • @Ricaz@lemmy.dbzer0.com
    link
    fedilink
    English
    52 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
      114 minutes 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
          1
          edit-2
          2 minutes 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.

  • oscardejarjayes [comrade/them]
    link
    fedilink
    English
    1
    edit-2
    2 hours ago

    A projects folder, usually. All the other folders at the root of $HOME are created by some application or another (XDG folder creator, applications that don’t respect XDG).

    I make a YouTube subfolder to be downloaded YouTube videos in, and subfolders for podcasts, but those aren’t at the root of $HOME.

  • @IsoKiero@sopuli.xyz
    link
    fedilink
    English
    64 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
      22 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
    link
    fedilink
    4
    edit-2
    5 minutes 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.

  • Matt
    link
    fedilink
    33 hours ago
    • ~/Documents/incubator for my personal projects.
    • ~/Documents/// for contributing/working on my saved projects
    • ~/Documents/schule for school
  • @hushable@lemmy.world
    link
    fedilink
    3
    edit-2
    4 hours ago

    From back when I used to freelance as a photo and video editor. ~/Media which was a mount point for my second hard drive with all the personal and paid customer’s I was working on, it was a mix of Music, Photos and Videos that I was creating, but not consuming if that makes sense.

    Just a remnant from back when I had a small SSD with my OS and a second larger mechanical drive for everything else