this post was submitted on 09 Dec 2025
137 points (97.9% liked)

Linux

60166 readers
877 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
 

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 ?

you are viewing a single comment's thread
view the rest of the comments
[–] Digit@lemmy.wtf 1 points 18 hours ago* (last edited 18 hours ago)

Uh-oh... I'm going to answer this. n_n

99% just dirs in ~/. ( Does making new dirs in /bedrock/strata count when manually adding strata? That'll be about all there is in the other 1%. )

  • ~/bin
  • ~/gittings
  • ~/gittings/Digit (where I keep my local copies of my own git repos)
  • ~/images
  • ~/images/scrots
  • ~/images/ all the different things like dsktpbckgrnds, charts, memes, photos, gifs, etc & EDITS where I save most GIMP file artwork
  • ~/sounds
  • ~/.fonts (if the system does not create this already... so I can put my big tiny font collection "dbtfc" of otb and ttf fonts I made, in there, and have them "just work").

Oh, and this one's a little fun:

  • ~/testdir in which i make a dir, a file, a media file, an executable, a fifo, a symlink, and a broken symlink, so I can ls that dir to see how everything looks in new themes.

And locations for my sshfs mounts and external drives (faster to type than putting them each in ~/mount or ~/media or ~/mnt).

  • ~/bb
  • ~/o
  • ~/m or ~/t as symlinks to ~/mozart and ~/tyson depending on if on tyson or mozart. (I name my thinkpads after famous people born on the same day it arrives in the post).

And then on bb external hd, loads of dirs, some notable ones

  • ./bkps
  • ./software
  • ./software/distros (where I store ISOs and system tarballs)
  • ./software/configs/ ; crypto/ ; doc/ ; games/ ; langs/ ; other/ ; virtuals/
  • ./cinema/
  • ./cinema/library (hiding the library in cinema, so I see it more often ;D)
  • ./cinema/_docu (for documentaries, lectures, interviews, etc)

And on the webserver

  • ~/web
  • ~/web/stuff
  • ~/stuff (symlink to ^, that I use like my own personal pastebin) (... ~/o/stuff, from local machine).