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 ?

  • sem@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 hours ago

    I make an ~/all/ directory as a catchall for things that don’t fit elsewhere, since ~ is used by so many automatic softwares and config files, I like having a place that only I’ll write to.

    I also make ~/bin for general use and ~/all/GitHub/ for software I install from GitHub.

  • Chewt@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    ~/Scripts for any bash or python scripts
    ~/Gits for any repos I clone
    ~/Projects for any projects im working on (not organized by programming language, but I do have some dirs called zig, go, etc., for when im learning a new language and want to make some projects for learning purposes)

    Most other files go into ~/Documents if they don’t have a home already, or don’t fit into the above directories

  • Auth@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 hours ago

    Public - for everything im seeding and sharing

    Apps - for all app images

    Games - for all lutris spam and random failed attempts at installing mods.

  • taaz@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    18 hours ago

    ~/Projects which has everything I ever cloned or started. yes, it’s getting kind of painful to backup :D

  • owsei@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    19 hours ago

    ~/code for code

    ~/dots for git-backed nix configs

    ~/.rt for projects compiled locally (“runtime”)

    ~/Screencast for recordings of my screen

    I also create a ~/.shrc.bash symlink that points to ~/dots/bash/bashrc that reats ~/dots/bash/*.bash and sources the files

    ~/.shenv.bash where I keep environment (computer) specific settings

  • Renohren@lemmy.today
    link
    fedilink
    arrow-up
    2
    ·
    23 hours ago

    Separate folders in the download one. One for each app. And a separate /home/sync folder with the same app separation folders to safekeep the backups of android apps and DCIM folder.

  • Theoriginalthon@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    22 hours ago

    /datapool or whatever the array is called for zfs pools, I often do /mail on mail servers, and /www on web servers. Not sure why but it makes it super obvious what’s going on when you login remotely

  • KaChilde@sh.itjust.works
    link
    fedilink
    arrow-up
    22
    ·
    2 days ago

    ~/Homework (porn)

    ~/aaaaaaa (porn)

    ~/Stuff (memes, with a porn subfolder)

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

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    2 days 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
  • Moondye@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

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

  • Lettuce eat lettuce@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 day 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)

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day 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.