137
submitted 1 week ago* (last edited 1 week ago) by underscores@lemmy.zip to c/linux@lemmy.ml

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 ?

(page 2) 50 comments
sorted by: hot top controversial new old
[-] monovergent@lemmy.ml 7 points 1 week ago* (last edited 1 week ago)

~/.drafts, in which my text editor taskbar shortcut script creates files YYMMDD_text_N. I passionately believe in eliminating the chore of manually naming my spur-of-the-moment notes and text files.

~/progs or ~/bin where loose programs not provided by my package manager reside.

If there's a secondary drive, /media/disk1 as the mount point in fstab.

[-] morto@piefed.social 7 points 1 week ago

I always make a bin folder in my home for putting my custom scripts and downloaded binaries. At least on fedora, ~/bin is already in the path, so I don't have to make any additional configuration to make stuff in there become commands for my cli

[-] Strit@lemmy.linuxuserspace.show 7 points 1 week ago* (last edited 1 week 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.

[-] pineapple@lemmy.ml 7 points 1 week ago

~/ linux iso's

[-] Infrapink@thebrainbin.org 7 points 1 week 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.

[-] IsoKiero@sopuli.xyz 6 points 1 week 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.

load more comments (1 replies)
[-] wwwgem@lemmy.ml 6 points 1 week ago

Your organization will vary with your usage. If you're looking for something suitable for work, I would highly recommend the PARA approach. https://fortelabs.com/blog/para/

I've tweaked it to my needs. Combined with fzf, it makes my workflow so smooth and efficient. https://www-gem.codeberg.page/sys_stay_organized/

[-] thejml@sh.itjust.works 6 points 1 week ago* (last edited 1 week ago)

I want to follow this, and I sorta do... but ADHD makes the P,A and other A basically the same category. And the R is just "stuff I put down to look at but haven't yet".

load more comments (1 replies)
[-] Pika@sh.itjust.works 6 points 1 week ago

I always make a ~/.local/{bin,opt,share} if the distro lacks it. and a ~/bot that I use for my development stuff

load more comments (4 replies)
[-] turbowafflz@lemmy.world 5 points 1 week ago

I usually make src, junk, and applications for appimages and unpackaged binaries

[-] justlemmyin@lemmy.world 5 points 1 week ago
[-] olafurp@lemmy.world 5 points 1 week 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.

[-] victorz@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

Have you tried chezmoi?

[-] MyNameIsRichard@lemmy.ml 5 points 1 week ago* (last edited 1 week ago)

~/Projects - for my coding projects

~/Qt - which holds the Qt framework

~/Torrents - For torrents that I share

[-] treep@lemmy.world 5 points 1 week ago* (last edited 1 week ago)

~/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.

[-] VoxAliorum@lemmy.ml 5 points 1 week ago

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.

[-] VinesNFluff@pawb.social 5 points 1 week ago* (last edited 1 week 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)

[-] InFerNo@lemmy.ml 4 points 1 week ago

Projects for all kinds of projects

aur_builds for the package I use from the AUR. No hand holding here, I build and install my AUR packages artisanally.

load more comments (1 replies)
[-] stupid_asshole69@hexbear.net 3 points 1 week ago

Especially for systems remotely managed by ssh:

~/Desktop/stuff/mystuff/junk/funny/

[-] hushable@lemmy.world 3 points 1 week ago* (last edited 1 week 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

[-] ZWQbpkzl@hexbear.net 3 points 1 week ago

I generally follow the same pattern as you. ~/Code with programming language based sub folders. But there's also a ~/Code/Work and ~/Code/Orgs which is for code that has a certain purpose. Generally the by-language subfolders are for projects I cloned, not authored. There is a fair amount of symlinking also.

Also /data for long term storage drives. Directories under ~/Audio and ~/Video will usually symlink to there.

[-] tyler@programming.dev 3 points 1 week ago

~/dev

~/dev/oss

~/dev/work

~/dev/personal

[-] phaedrus@piefed.world 3 points 1 week ago* (last edited 1 week ago)

I do a similar thing for code stuffs, generally always make a ~/Git and ~/Godot so I always have a spot for things.

I also delete most of the auto-created ones if I'm using a DE that does that, because I have my own organization going on with various external/network drives. Only one I have always kept is ~/Downloads.

load more comments (5 replies)
[-] DieserTypMatthias@lemmy.ml 3 points 1 week ago
  • ~/Documents/incubator for my personal projects.
  • ~/Documents//<user/org>/ for contributing/working on my saved projects
  • ~/Documents/schule for school
load more comments (1 replies)
[-] golden_zealot@lemmy.ml 3 points 1 week ago

Under ~ I usually make ~/Application for flatpaks/appimages etc, ~/Script for any kind of script I write in bash, python, or whatever else, ~/Audio for audio/music production stuff, and ~/Games for emulators and such. ~/Documents is reserved for actual documents containing text data usually.

[-] utopiah@lemmy.ml 2 points 1 week ago* (last edited 1 week 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
[-] Cysioland@lemmygrad.ml 2 points 1 week ago

~/Git for all git clones

[-] mko@discuss.tchncs.de 2 points 1 week ago

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.
load more comments
view more: ‹ prev next ›
this post was submitted on 09 Dec 2025
137 points (97.9% liked)

Linux

57274 readers
1097 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS