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 ?
Especially for systems remotely managed by ssh:
~/Desktop/stuff/mystuff/junk/funny/
I usually make
~/Packagesfor various binary packages that I can’t add as repos for whatever reason. And~/Packages/srcfor stuff I compile myself.And
~/Gamesfor games.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.
Projectsfor all kinds of projectsaur_buildsfor the package I use from the AUR. No hand holding here, I build and install my AUR packages artisanally.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
~/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.
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.
i have a ‘src’ directory. tho my home directory is extremely messy, ls | wc -l gives me 170 now…
~/Projects - for my coding projects
~/Qt - which holds the Qt framework
~/Torrents - For torrents that I share
~/ linux iso’s
~/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.~/Appsin addition to~/bin, typically binaries but all AppImages
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.~/Git for all git clones
~/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.
~/Homework
I just call it
~/Porn.







