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 ?
~/Prototypesfor … 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
~/Git for all git clones
~/Projects - for my coding projects
~/Qt - which holds the Qt framework
~/Torrents - For torrents that I share
I
rsyncmy 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.My homedir is an infernal hellhole of junk accumulated over the past 15 years and I wouldn’t have it any other way
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…)
Dafuq are you doing in other people’s homes?
Sysadmins are all creeps, confirmed
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.
I just prepend everything in the home directory with a dot every 6 months or so, no problems so far
~/ linux iso’s
Usually gitor development.
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.
~/repos
~/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.
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.
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.
- ~/Documents/incubator for my personal projects.
- ~/Documents/// for contributing/working on my saved projects
- ~/Documents/schule for school
This dir structure for git projects is the best one I think, especially if managing multiple identities/git configurations. Git has a ‘includeif’ to change your setup depending on which dir you are currently in:
~/dev~/dev/oss~/dev/work~/dev/personal~/Homework
From back when I used to freelance as a photo and video editor.
~/Mediawhich 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









