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 ?

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    20 minutes 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
    2
    ·
    edit-2
    2 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)

  • KaChilde@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    4 hours ago

    ~/Homework (porn)

    ~/aaaaaaa (porn)

    ~/Stuff (memes, with a porn subfolder)

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

    • Apparatus@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      4 hours ago

      I do similarly, but I use ‘~/Development’ only because I accidentally fucked up my ‘/dev’ dir once using ‘~/dev’

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

      I tend to put work dir under documents but yeah would be the same having a dev or local dir for code.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    3 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.

  • selokichtli@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    Apps (local executables, appimages, etc.), Projects (Work, hobbies), Sync (things I need everywhere), tmp (files I will probably delete sooner than later), and Data. Also Vaults and Boxes, only if I need them.

  • vortexal@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    Outside of some folders I made specifically because an app required it, I have a “games” folder for most of my games and a “.lutriswine” folder to have Lutris use a different directory from Wine.

  • biocoder.ronin@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 hours ago

    I have internal RAID1s that store at least two directories apart from any OS or home dev.

    …/repos …/misc

    Misc contain timestamp fstabs, mdadm.conf, rust/python/apt user-inatalled package names, among other notes and small files.

    I also sync my master org directory between my documents snapshots and the repos dir

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    10 hours 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.